MCPcopy Create free account
hub / github.com/ccxt/ccxt / fetchMarkets

Method fetchMarkets

js/src/aftermath.js:215–264  ·  view source on GitHub ↗

* @method * @name aftermath#fetchMarkets * @see https://testnet.aftermath.finance/docs/#/CCXT/markets * @description retrieves data on all markets for woo * @param {object} [params] extra parameters specific to the exchange API endpoint * @returns {object[]} an array of obje

(params = {})

Source from the content-addressed store, hash-verified

213 * @returns {object[]} an array of objects representing market data
214 */
215 async fetchMarkets(params = {}) {
216 const response = await this.publicGetMarkets(params);
217 //
218 // [
219 // {
220 // "id": "0x49bd40cc7880bd358465116157f0271c25d23361b94eace9a25dc2019b449bfc",
221 // "symbol": "BTC/USD:USDC",
222 // "base": "BTC",
223 // "quote": "USD",
224 // "baseId": "BTC",
225 // "quoteId": "USD",
226 // "active": true,
227 // "type": "swap",
228 // "spot": false,
229 // "margin": false,
230 // "swap": true,
231 // "future": false,
232 // "option": false,
233 // "contract": true,
234 // "settle": "USDC",
235 // "settleId": "0x457049371f5b5dc2bda857bb804ca6e93c5a3cae1636d0cd17bb6b6070d19458::usdc::USDC",
236 // "contractSize": 0.00001,
237 // "linear": true,
238 // "inverse": false,
239 // "taker": 0.001,
240 // "maker": 0.0,
241 // "percentage": true,
242 // "tierBased": false,
243 // "precision": {
244 // "amount": 0.00001,
245 // "price": 0.0001
246 // },
247 // "limits": {
248 // "cost": {
249 // "min": 1.0
250 // },
251 // "leverage": {
252 // "max": 50.0
253 // }
254 // },
255 // "marginModes": {
256 // "isolated": true,
257 // "cross": false
258 // },
259 // "subType": "linear"
260 // }
261 // ]
262 //
263 return this.parseMarkets(response);
264 }
265 parseMarket(market) {
266 //
267 // {

Callers

nothing calls this directly

Calls 2

publicGetMarketsMethod · 0.65
parseMarketsMethod · 0.45

Tested by

no test coverage detected