I need place a future order in Bybit this is the client object - it create client for bybit spot cause when I place order it trades in Bybit spot-
Create Client -
export const getByBitFutureClient = async (
api_key: string,
api_secret: string
) => {
const _key = api_key;
const _secret = api_secret;
const _bybit = new ccxt.bybit({
apiKey: _key,
secret: _secret,
options: { defaultType: 'futures' },
});
Place order -
res = await _bybit.createOrder('BTCUSDT', type, _side, 1, null, {
qty: 1,
});