Get futures symbol list with CCXT nodeJS

1.1k views Asked by At

Hi I want to get futures symbol list of coinex broker but exchange.loadMarkets only load spot symbols

1

There are 1 answers

0
Sam On
const ccxt = require ('ccxt');

console.log ('CCXT Version:', ccxt.version);

async function main () {

    const exchange = new ccxt.coinex ({
        // 'apiKey': '...',
        // 'secret': '...',
        'options': {
            'defaultType': 'swap',
        },
    });

    const markets = await exchange.loadMarkets ();
    console.log (markets);

};

main ();