I am following the api docs to try and create a simple test script which creates a test order. However I am getting the error APIError(code=-1022): Signature for this request is not valid.
After searching on google, I see no relevant answers as my code does not even request a signature input. I am using code from many tutorials and it is identical to their. I have ensured the key and secret is correct/passed through correctly, I have tested this by printing it out and doing other calls with the config.
Can anyone assist me learning this API or have experience with it?
My code:
import datetime
import config
from binance.client import Client
import json
import time
import random
import os
from binance.enums import *
binanceClient = Client(config.API_KEY, config.API_SECRET)
order = binanceClient.create_test_order(
symbol='BTCUSDT',
side=SIDE_BUY,
type=ORDER_TYPE_MARKET,
quantity=100
#price='0.00001')
print(order)