loopring-lightcone
Version:
A library to interact with the Loopring relayer system
12 lines (10 loc) • 385 B
JavaScript
const { request } = require("../../../request");
exports.getMarketsConfiguration = async () => {
const markets = await request("GET", "api/v2/exchange/markets");
// FIXME: ugly way to handle this
const delistedMarkets = ["TRB-ETH"];
const validMarkets = markets.filter(
(market) => delistedMarkets.indexOf(market.market) < 0
);
return validMarkets;
};