Python Examples
Exchange Rate Limiter RollingWindow
Exchange Rate Limiter RollingWindow — CCXT Python code example.
import os
import sys
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
# AUTO-TRANSPILE #
async def example():
myex = ccxt.okx({
'rateLimiterAlgorithm': 'rollingWindow',
'rollingWindowSize': 10000,
})
trades = await myex.fetch_ohlcv('BTC/USDT')
print(trades)
await myex.close()
asyncio.run(example())