I'm using bybit api to create an order on the spot market in nodejs. i tried the below code:
var params = {
api_key: api['key'],
qty: 30,
symbol: "EOSUSDT",
timeInForce: this.bybit_enums["spot"]["time_in_force"]["GTC"],
timestamp: expires,
orderType: this.bybit_enums["spot"]["order_type"]["MARKET"],
};
var sign = getSignature(params, api['secret']);
params['sign'] = sign
const result = await axios({method: "post", url: "https://api-testnet.bybit.com/spot/v1/order", data: params});
but it doesn't work and responses me with: "Missing required parameter 'symbol'" which i have in the params. thanks.
based on this: https://bybit-exchange.github.io/docs/testnet/spot/#t-spotordercreate