fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market https://docs.delta.exchange/#get-tickers-for-products :param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers
(self, symbols: Strings = None, params={})
| 1236 | return self.parse_ticker(result, market) |
| 1237 | |
| 1238 | def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers: |
| 1239 | """ |
| 1240 | fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market |
| 1241 | |
| 1242 | https://docs.delta.exchange/#get-tickers-for-products |
| 1243 | |
| 1244 | :param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned |
| 1245 | :param dict [params]: extra parameters specific to the exchange API endpoint |
| 1246 | :returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/?id=ticker-structure>` |
| 1247 | """ |
| 1248 | self.load_markets() |
| 1249 | symbols = self.market_symbols(symbols) |
| 1250 | response = self.publicGetTickers(params) |
| 1251 | # |
| 1252 | # spot |
| 1253 | # |
| 1254 | # { |
| 1255 | # "result": [ |
| 1256 | # { |
| 1257 | # "close": 30634.0, |
| 1258 | # "contract_type": "spot", |
| 1259 | # "greeks": null, |
| 1260 | # "high": 30780.0, |
| 1261 | # "low": 30340.5, |
| 1262 | # "mark_price": "48000", |
| 1263 | # "oi": "0.0000", |
| 1264 | # "oi_change_usd_6h": "0.0000", |
| 1265 | # "oi_contracts": "0", |
| 1266 | # "oi_value": "0.0000", |
| 1267 | # "oi_value_symbol": "BTC", |
| 1268 | # "oi_value_usd": "0.0000", |
| 1269 | # "open": 30464.0, |
| 1270 | # "price_band": null, |
| 1271 | # "product_id": 8320, |
| 1272 | # "quotes": {}, |
| 1273 | # "size": 2.6816639999999996, |
| 1274 | # "spot_price": "30637.91465121", |
| 1275 | # "symbol": "BTC_USDT", |
| 1276 | # "timestamp": 1689139767621299, |
| 1277 | # "turnover": 2.6816639999999996, |
| 1278 | # "turnover_symbol": "BTC", |
| 1279 | # "turnover_usd": 81896.45613400004, |
| 1280 | # "volume": 2.6816639999999996 |
| 1281 | # }, |
| 1282 | # ], |
| 1283 | # "success":true |
| 1284 | # } |
| 1285 | # |
| 1286 | # swap |
| 1287 | # |
| 1288 | # { |
| 1289 | # "result": [ |
| 1290 | # { |
| 1291 | # "close": 30600.5, |
| 1292 | # "contract_type": "perpetual_futures", |
| 1293 | # "funding_rate": "0.00602961", |
| 1294 | # "greeks": null, |
| 1295 | # "high": 30803.0, |
nothing calls this directly
no test coverage detected