ccxt 4.1.19__py2.py3-none-any.whl → 4.1.22__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ccxt/__init__.py +1 -1
- ccxt/abstract/okcoin.py +70 -206
- ccxt/ace.py +12 -12
- ccxt/ascendex.py +5 -5
- ccxt/async_support/__init__.py +1 -1
- ccxt/async_support/ace.py +12 -12
- ccxt/async_support/ascendex.py +5 -5
- ccxt/async_support/base/exchange.py +1 -1
- ccxt/async_support/bigone.py +2 -2
- ccxt/async_support/binance.py +184 -184
- ccxt/async_support/bingx.py +48 -48
- ccxt/async_support/bitbank.py +14 -14
- ccxt/async_support/bitbns.py +7 -7
- ccxt/async_support/bitfinex.py +2 -2
- ccxt/async_support/bitfinex2.py +35 -35
- ccxt/async_support/bitflyer.py +17 -17
- ccxt/async_support/bitforex.py +9 -9
- ccxt/async_support/bitget.py +433 -215
- ccxt/async_support/bitmart.py +39 -39
- ccxt/async_support/bitmex.py +7 -7
- ccxt/async_support/bitopro.py +1 -1
- ccxt/async_support/bitpanda.py +1 -1
- ccxt/async_support/bitrue.py +2 -2
- ccxt/async_support/bitso.py +2 -2
- ccxt/async_support/bitstamp.py +3 -3
- ccxt/async_support/bitvavo.py +2 -2
- ccxt/async_support/bl3p.py +1 -1
- ccxt/async_support/btcalpha.py +7 -7
- ccxt/async_support/btcturk.py +1 -1
- ccxt/async_support/bybit.py +58 -58
- ccxt/async_support/cex.py +1 -1
- ccxt/async_support/coinbase.py +13 -13
- ccxt/async_support/coinbasepro.py +15 -15
- ccxt/async_support/coinex.py +19 -19
- ccxt/async_support/coinone.py +2 -2
- ccxt/async_support/coinsph.py +4 -4
- ccxt/async_support/coinspot.py +2 -2
- ccxt/async_support/cryptocom.py +28 -28
- ccxt/async_support/currencycom.py +1 -1
- ccxt/async_support/delta.py +26 -26
- ccxt/async_support/deribit.py +9 -9
- ccxt/async_support/digifinex.py +38 -38
- ccxt/async_support/exmo.py +18 -18
- ccxt/async_support/gate.py +59 -59
- ccxt/async_support/gemini.py +4 -4
- ccxt/async_support/hitbtc.py +6 -6
- ccxt/async_support/hollaex.py +2 -2
- ccxt/async_support/huobi.py +70 -70
- ccxt/async_support/indodax.py +1 -1
- ccxt/async_support/kraken.py +33 -33
- ccxt/async_support/krakenfutures.py +6 -5
- ccxt/async_support/kucoin.py +74 -74
- ccxt/async_support/kucoinfutures.py +8 -8
- ccxt/async_support/latoken.py +14 -14
- ccxt/async_support/lbank2.py +33 -33
- ccxt/async_support/mexc.py +22 -22
- ccxt/async_support/ndax.py +1 -1
- ccxt/async_support/novadax.py +22 -22
- ccxt/async_support/oceanex.py +18 -18
- ccxt/async_support/okcoin.py +1950 -2758
- ccxt/async_support/okx.py +73 -73
- ccxt/async_support/paymium.py +11 -11
- ccxt/async_support/phemex.py +26 -26
- ccxt/async_support/poloniex.py +30 -30
- ccxt/async_support/poloniexfutures.py +25 -25
- ccxt/async_support/probit.py +21 -21
- ccxt/async_support/tokocrypto.py +22 -22
- ccxt/async_support/upbit.py +21 -21
- ccxt/async_support/wavesexchange.py +2 -2
- ccxt/async_support/wazirx.py +14 -14
- ccxt/async_support/whitebit.py +6 -6
- ccxt/async_support/woo.py +21 -21
- ccxt/async_support/yobit.py +16 -16
- ccxt/async_support/zaif.py +10 -10
- ccxt/async_support/zonda.py +15 -15
- ccxt/base/exchange.py +2 -1
- ccxt/bigone.py +2 -2
- ccxt/binance.py +184 -184
- ccxt/bingx.py +48 -48
- ccxt/bitbank.py +14 -14
- ccxt/bitbns.py +7 -7
- ccxt/bitfinex.py +2 -2
- ccxt/bitfinex2.py +35 -35
- ccxt/bitflyer.py +17 -17
- ccxt/bitforex.py +9 -9
- ccxt/bitget.py +433 -215
- ccxt/bitmart.py +39 -39
- ccxt/bitmex.py +7 -7
- ccxt/bitopro.py +1 -1
- ccxt/bitpanda.py +1 -1
- ccxt/bitrue.py +2 -2
- ccxt/bitso.py +2 -2
- ccxt/bitstamp.py +3 -3
- ccxt/bitvavo.py +2 -2
- ccxt/bl3p.py +1 -1
- ccxt/btcalpha.py +7 -7
- ccxt/btcturk.py +1 -1
- ccxt/bybit.py +58 -58
- ccxt/cex.py +1 -1
- ccxt/coinbase.py +13 -13
- ccxt/coinbasepro.py +15 -15
- ccxt/coinex.py +19 -19
- ccxt/coinone.py +2 -2
- ccxt/coinsph.py +4 -4
- ccxt/coinspot.py +2 -2
- ccxt/cryptocom.py +28 -28
- ccxt/currencycom.py +1 -1
- ccxt/delta.py +26 -26
- ccxt/deribit.py +9 -9
- ccxt/digifinex.py +38 -38
- ccxt/exmo.py +18 -18
- ccxt/gate.py +59 -59
- ccxt/gemini.py +4 -4
- ccxt/hitbtc.py +6 -6
- ccxt/hollaex.py +2 -2
- ccxt/huobi.py +70 -70
- ccxt/indodax.py +1 -1
- ccxt/kraken.py +33 -33
- ccxt/krakenfutures.py +6 -5
- ccxt/kucoin.py +74 -74
- ccxt/kucoinfutures.py +8 -8
- ccxt/latoken.py +14 -14
- ccxt/lbank2.py +33 -33
- ccxt/mexc.py +22 -22
- ccxt/ndax.py +1 -1
- ccxt/novadax.py +22 -22
- ccxt/oceanex.py +18 -18
- ccxt/okcoin.py +1950 -2758
- ccxt/okx.py +73 -73
- ccxt/paymium.py +11 -11
- ccxt/phemex.py +26 -26
- ccxt/poloniex.py +30 -30
- ccxt/poloniexfutures.py +25 -25
- ccxt/pro/__init__.py +1 -1
- ccxt/pro/ascendex.py +1 -1
- ccxt/pro/binance.py +9 -9
- ccxt/pro/bingx.py +12 -12
- ccxt/pro/bitget.py +2 -2
- ccxt/pro/bitpanda.py +7 -7
- ccxt/pro/bitrue.py +2 -2
- ccxt/pro/blockchaincom.py +6 -6
- ccxt/pro/bybit.py +15 -15
- ccxt/pro/cex.py +8 -8
- ccxt/pro/coinbase.py +6 -6
- ccxt/pro/coinbasepro.py +1 -1
- ccxt/pro/coinex.py +8 -8
- ccxt/pro/cryptocom.py +12 -12
- ccxt/pro/deribit.py +7 -7
- ccxt/pro/gemini.py +4 -4
- ccxt/pro/hitbtc.py +17 -17
- ccxt/pro/huobi.py +3 -3
- ccxt/pro/kraken.py +6 -6
- ccxt/pro/krakenfutures.py +10 -10
- ccxt/pro/kucoin.py +85 -42
- ccxt/pro/kucoinfutures.py +5 -5
- ccxt/pro/luno.py +1 -1
- ccxt/pro/mexc.py +7 -7
- ccxt/pro/okx.py +16 -15
- ccxt/pro/phemex.py +15 -15
- ccxt/pro/poloniex.py +9 -9
- ccxt/pro/poloniexfutures.py +5 -5
- ccxt/pro/probit.py +5 -5
- ccxt/pro/wazirx.py +5 -5
- ccxt/pro/woo.py +1 -1
- ccxt/probit.py +21 -21
- ccxt/test/base/test_shared_methods.py +1 -1
- ccxt/tokocrypto.py +22 -22
- ccxt/upbit.py +21 -21
- ccxt/wavesexchange.py +2 -2
- ccxt/wazirx.py +14 -14
- ccxt/whitebit.py +6 -6
- ccxt/woo.py +21 -21
- ccxt/yobit.py +16 -16
- ccxt/zaif.py +10 -10
- ccxt/zonda.py +15 -15
- {ccxt-4.1.19.dist-info → ccxt-4.1.22.dist-info}/METADATA +5 -9
- {ccxt-4.1.19.dist-info → ccxt-4.1.22.dist-info}/RECORD +179 -179
- {ccxt-4.1.19.dist-info → ccxt-4.1.22.dist-info}/WHEEL +0 -0
- {ccxt-4.1.19.dist-info → ccxt-4.1.22.dist-info}/top_level.txt +0 -0
ccxt/async_support/bybit.py
CHANGED
@@ -1455,7 +1455,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
1455
1455
|
async def fetch_time(self, params={}):
|
1456
1456
|
"""
|
1457
1457
|
fetches the current integer timestamp in milliseconds from the exchange server
|
1458
|
-
see https://bybit-exchange.github.io/docs/v5/market/time
|
1458
|
+
:see: https://bybit-exchange.github.io/docs/v5/market/time
|
1459
1459
|
:param dict [params]: extra parameters specific to the bybit api endpoint
|
1460
1460
|
:returns int: the current integer timestamp in milliseconds from the exchange server
|
1461
1461
|
"""
|
@@ -1477,7 +1477,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
1477
1477
|
async def fetch_currencies(self, params={}):
|
1478
1478
|
"""
|
1479
1479
|
fetches all available currencies on an exchange
|
1480
|
-
see https://bybit-exchange.github.io/docs/v5/asset/coin-info
|
1480
|
+
:see: https://bybit-exchange.github.io/docs/v5/asset/coin-info
|
1481
1481
|
:param dict [params]: extra parameters specific to the bybit api endpoint
|
1482
1482
|
:returns dict: an associative dictionary of currencies
|
1483
1483
|
"""
|
@@ -1600,7 +1600,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
1600
1600
|
async def fetch_markets(self, params={}):
|
1601
1601
|
"""
|
1602
1602
|
retrieves data on all markets for bybit
|
1603
|
-
see https://bybit-exchange.github.io/docs/v5/market/instrument
|
1603
|
+
:see: https://bybit-exchange.github.io/docs/v5/market/instrument
|
1604
1604
|
:param dict [params]: extra parameters specific to the exchange api endpoint
|
1605
1605
|
:returns dict[]: an array of objects representing market data
|
1606
1606
|
"""
|
@@ -2145,7 +2145,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
2145
2145
|
async def fetch_ticker(self, symbol: str, params={}):
|
2146
2146
|
"""
|
2147
2147
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
2148
|
-
see https://bybit-exchange.github.io/docs/v5/market/tickers
|
2148
|
+
:see: https://bybit-exchange.github.io/docs/v5/market/tickers
|
2149
2149
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
2150
2150
|
:param dict [params]: extra parameters specific to the bybit api endpoint
|
2151
2151
|
:returns dict: a `ticker structure <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
|
@@ -2214,7 +2214,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
2214
2214
|
async def fetch_tickers(self, symbols: Optional[List[str]] = None, params={}):
|
2215
2215
|
"""
|
2216
2216
|
fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
2217
|
-
see https://bybit-exchange.github.io/docs/v5/market/tickers
|
2217
|
+
:see: https://bybit-exchange.github.io/docs/v5/market/tickers
|
2218
2218
|
:param str[] symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
2219
2219
|
:param dict [params]: extra parameters specific to the bybit api endpoint
|
2220
2220
|
:returns dict: an array of `ticker structures <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
|
@@ -2322,10 +2322,10 @@ class bybit(Exchange, ImplicitAPI):
|
|
2322
2322
|
async def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2323
2323
|
"""
|
2324
2324
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
2325
|
-
see https://bybit-exchange.github.io/docs/v5/market/kline
|
2326
|
-
see https://bybit-exchange.github.io/docs/v5/market/mark-kline
|
2327
|
-
see https://bybit-exchange.github.io/docs/v5/market/index-kline
|
2328
|
-
see https://bybit-exchange.github.io/docs/v5/market/preimum-index-kline
|
2325
|
+
:see: https://bybit-exchange.github.io/docs/v5/market/kline
|
2326
|
+
:see: https://bybit-exchange.github.io/docs/v5/market/mark-kline
|
2327
|
+
:see: https://bybit-exchange.github.io/docs/v5/market/index-kline
|
2328
|
+
:see: https://bybit-exchange.github.io/docs/v5/market/preimum-index-kline
|
2329
2329
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
2330
2330
|
:param str timeframe: the length of time each candle represents
|
2331
2331
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -2473,7 +2473,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
2473
2473
|
async def fetch_funding_rates(self, symbols: Optional[List[str]] = None, params={}):
|
2474
2474
|
"""
|
2475
2475
|
fetches funding rates for multiple markets
|
2476
|
-
see https://bybit-exchange.github.io/docs/v5/market/tickers
|
2476
|
+
:see: https://bybit-exchange.github.io/docs/v5/market/tickers
|
2477
2477
|
:param str[] symbols: unified symbols of the markets to fetch the funding rates for, all market funding rates are returned if not assigned
|
2478
2478
|
:param dict [params]: extra parameters specific to the bybit api endpoint
|
2479
2479
|
:returns dict: an array of `funding rate structures <https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure>`
|
@@ -2547,7 +2547,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
2547
2547
|
async def fetch_funding_rate_history(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2548
2548
|
"""
|
2549
2549
|
fetches historical funding rate prices
|
2550
|
-
see https://bybit-exchange.github.io/docs/v5/market/history-fund-rate
|
2550
|
+
:see: https://bybit-exchange.github.io/docs/v5/market/history-fund-rate
|
2551
2551
|
:param str symbol: unified symbol of the market to fetch the funding rate history for
|
2552
2552
|
:param int [since]: timestamp in ms of the earliest funding rate to fetch
|
2553
2553
|
:param int [limit]: the maximum amount of `funding rate structures <https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure>` to fetch
|
@@ -2682,7 +2682,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
2682
2682
|
feeToken = self.safe_string(trade, 'feeTokenId')
|
2683
2683
|
feeCurrency = self.safe_currency_code(feeToken)
|
2684
2684
|
fee = {
|
2685
|
-
'cost':
|
2685
|
+
'cost': feeCost,
|
2686
2686
|
'currency': feeCurrency,
|
2687
2687
|
}
|
2688
2688
|
return self.safe_trade({
|
@@ -2833,7 +2833,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
2833
2833
|
else:
|
2834
2834
|
feeCurrencyCode = market['base'] if market['inverse'] else market['settle']
|
2835
2835
|
fee = {
|
2836
|
-
'cost':
|
2836
|
+
'cost': feeCostString,
|
2837
2837
|
'currency': feeCurrencyCode,
|
2838
2838
|
}
|
2839
2839
|
return self.safe_trade({
|
@@ -2855,7 +2855,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
2855
2855
|
async def fetch_trades(self, symbol: str, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2856
2856
|
"""
|
2857
2857
|
get the list of most recent trades for a particular symbol
|
2858
|
-
see https://bybit-exchange.github.io/docs/v5/market/recent-trade
|
2858
|
+
:see: https://bybit-exchange.github.io/docs/v5/market/recent-trade
|
2859
2859
|
:param str symbol: unified symbol of the market to fetch trades for
|
2860
2860
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
2861
2861
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -2909,7 +2909,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
2909
2909
|
async def fetch_order_book(self, symbol: str, limit: Optional[int] = None, params={}):
|
2910
2910
|
"""
|
2911
2911
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
2912
|
-
see https://bybit-exchange.github.io/docs/v5/market/orderbook
|
2912
|
+
:see: https://bybit-exchange.github.io/docs/v5/market/orderbook
|
2913
2913
|
:param str symbol: unified symbol of the market to fetch the order book for
|
2914
2914
|
:param int [limit]: the maximum amount of order book entries to return
|
2915
2915
|
:param dict [params]: extra parameters specific to the bybit api endpoint
|
@@ -3118,9 +3118,9 @@ class bybit(Exchange, ImplicitAPI):
|
|
3118
3118
|
async def fetch_balance(self, params={}):
|
3119
3119
|
"""
|
3120
3120
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
3121
|
-
see https://bybit-exchange.github.io/docs/v5/spot-margin-normal/account-info
|
3122
|
-
see https://bybit-exchange.github.io/docs/v5/asset/all-balance
|
3123
|
-
see https://bybit-exchange.github.io/docs/v5/account/wallet-balance
|
3121
|
+
:see: https://bybit-exchange.github.io/docs/v5/spot-margin-normal/account-info
|
3122
|
+
:see: https://bybit-exchange.github.io/docs/v5/asset/all-balance
|
3123
|
+
:see: https://bybit-exchange.github.io/docs/v5/account/wallet-balance
|
3124
3124
|
:param dict [params]: extra parameters specific to the bybit api endpoint
|
3125
3125
|
:param str [params.type]: wallet type, ['spot', 'swap', 'fund']
|
3126
3126
|
:returns dict: a `balance structure <https://docs.ccxt.com/en/latest/manual.html?#balance-structure>`
|
@@ -3472,7 +3472,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
3472
3472
|
async def fetch_order(self, id: str, symbol: Optional[str] = None, params={}):
|
3473
3473
|
"""
|
3474
3474
|
fetches information on an order made by the user
|
3475
|
-
see https://bybit-exchange.github.io/docs/v5/order/order-list
|
3475
|
+
:see: https://bybit-exchange.github.io/docs/v5/order/order-list
|
3476
3476
|
:param str symbol: unified symbol of the market the order was made in
|
3477
3477
|
:param dict [params]: extra parameters specific to the bybit api endpoint
|
3478
3478
|
:returns dict: An `order structure <https://github.com/ccxt/ccxt/wiki/Manual#order-structure>`
|
@@ -3493,7 +3493,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
3493
3493
|
async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount, price=None, params={}):
|
3494
3494
|
"""
|
3495
3495
|
create a trade order
|
3496
|
-
see https://bybit-exchange.github.io/docs/v5/order/create-order
|
3496
|
+
:see: https://bybit-exchange.github.io/docs/v5/order/create-order
|
3497
3497
|
:param str symbol: unified symbol of the market to create an order in
|
3498
3498
|
:param str type: 'market' or 'limit'
|
3499
3499
|
:param str side: 'buy' or 'sell'
|
@@ -3817,9 +3817,9 @@ class bybit(Exchange, ImplicitAPI):
|
|
3817
3817
|
async def edit_order(self, id: str, symbol, type, side, amount=None, price=None, params={}):
|
3818
3818
|
"""
|
3819
3819
|
edit a trade order
|
3820
|
-
see https://bybit-exchange.github.io/docs/v5/order/amend-order
|
3821
|
-
see https://bybit-exchange.github.io/docs/derivatives/unified/replace-order
|
3822
|
-
see https://bybit-exchange.github.io/docs/api-explorer/derivatives/trade/contract/replace-order
|
3820
|
+
:see: https://bybit-exchange.github.io/docs/v5/order/amend-order
|
3821
|
+
:see: https://bybit-exchange.github.io/docs/derivatives/unified/replace-order
|
3822
|
+
:see: https://bybit-exchange.github.io/docs/api-explorer/derivatives/trade/contract/replace-order
|
3823
3823
|
:param str id: cancel order id
|
3824
3824
|
:param str symbol: unified symbol of the market to create an order in
|
3825
3825
|
:param str type: 'market' or 'limit'
|
@@ -3962,7 +3962,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
3962
3962
|
async def cancel_order(self, id: str, symbol: Optional[str] = None, params={}):
|
3963
3963
|
"""
|
3964
3964
|
cancels an open order
|
3965
|
-
see https://bybit-exchange.github.io/docs/v5/order/cancel-order
|
3965
|
+
:see: https://bybit-exchange.github.io/docs/v5/order/cancel-order
|
3966
3966
|
:param str id: order id
|
3967
3967
|
:param str symbol: unified symbol of the market the order was made in
|
3968
3968
|
:param dict [params]: extra parameters specific to the bybit api endpoint
|
@@ -4059,7 +4059,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
4059
4059
|
async def cancel_all_orders(self, symbol: Optional[str] = None, params={}):
|
4060
4060
|
"""
|
4061
4061
|
cancel all open orders
|
4062
|
-
see https://bybit-exchange.github.io/docs/v5/order/cancel-all
|
4062
|
+
:see: https://bybit-exchange.github.io/docs/v5/order/cancel-all
|
4063
4063
|
:param str symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
|
4064
4064
|
:param dict [params]: extra parameters specific to the bybit api endpoint
|
4065
4065
|
:param boolean [params.stop]: True if stop order
|
@@ -4214,7 +4214,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
4214
4214
|
async def fetch_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
4215
4215
|
"""
|
4216
4216
|
fetches information on multiple orders made by the user
|
4217
|
-
see https://bybit-exchange.github.io/docs/v5/order/order-list
|
4217
|
+
:see: https://bybit-exchange.github.io/docs/v5/order/order-list
|
4218
4218
|
:param str symbol: unified market symbol of the market orders were made in
|
4219
4219
|
:param int [since]: the earliest time in ms to fetch orders for
|
4220
4220
|
:param int [limit]: the maximum number of orde structures to retrieve
|
@@ -4322,7 +4322,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
4322
4322
|
async def fetch_closed_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
4323
4323
|
"""
|
4324
4324
|
fetches information on multiple closed orders made by the user
|
4325
|
-
see https://bybit-exchange.github.io/docs/v5/order/order-list
|
4325
|
+
:see: https://bybit-exchange.github.io/docs/v5/order/order-list
|
4326
4326
|
:param str symbol: unified market symbol of the market orders were made in
|
4327
4327
|
:param int [since]: the earliest time in ms to fetch orders for
|
4328
4328
|
:param int [limit]: the maximum number of orde structures to retrieve
|
@@ -4338,7 +4338,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
4338
4338
|
async def fetch_canceled_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
4339
4339
|
"""
|
4340
4340
|
fetches information on multiple canceled orders made by the user
|
4341
|
-
see https://bybit-exchange.github.io/docs/v5/order/order-list
|
4341
|
+
:see: https://bybit-exchange.github.io/docs/v5/order/order-list
|
4342
4342
|
:param str symbol: unified market symbol of the market orders were made in
|
4343
4343
|
:param int [since]: timestamp in ms of the earliest order, default is None
|
4344
4344
|
:param int [limit]: max number of orders to return, default is None
|
@@ -4398,7 +4398,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
4398
4398
|
async def fetch_open_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
4399
4399
|
"""
|
4400
4400
|
fetch all unfilled currently open orders
|
4401
|
-
see https://bybit-exchange.github.io/docs/v5/order/open-order
|
4401
|
+
:see: https://bybit-exchange.github.io/docs/v5/order/open-order
|
4402
4402
|
:param str symbol: unified market symbol
|
4403
4403
|
:param int [since]: the earliest time in ms to fetch open orders for
|
4404
4404
|
:param int [limit]: the maximum number of open orders structures to retrieve
|
@@ -4498,7 +4498,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
4498
4498
|
async def fetch_order_trades(self, id: str, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
4499
4499
|
"""
|
4500
4500
|
fetch all the trades made from a single order
|
4501
|
-
see https://bybit-exchange.github.io/docs/v5/position/execution
|
4501
|
+
:see: https://bybit-exchange.github.io/docs/v5/position/execution
|
4502
4502
|
:param str id: order id
|
4503
4503
|
:param str symbol: unified market symbol
|
4504
4504
|
:param int [since]: the earliest time in ms to fetch trades for
|
@@ -4562,7 +4562,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
4562
4562
|
async def fetch_my_trades(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
4563
4563
|
"""
|
4564
4564
|
fetch all trades made by the user
|
4565
|
-
see https://bybit-exchange.github.io/docs/v5/position/execution
|
4565
|
+
:see: https://bybit-exchange.github.io/docs/v5/position/execution
|
4566
4566
|
:param str symbol: unified market symbol
|
4567
4567
|
:param int [since]: the earliest time in ms to fetch trades for
|
4568
4568
|
:param int [limit]: the maximum number of trades structures to retrieve
|
@@ -4680,7 +4680,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
4680
4680
|
async def fetch_deposit_addresses_by_network(self, code: str, params={}):
|
4681
4681
|
"""
|
4682
4682
|
fetch a dictionary of addresses for a currency, indexed by network
|
4683
|
-
see https://bybit-exchange.github.io/docs/v5/asset/master-deposit-addr
|
4683
|
+
:see: https://bybit-exchange.github.io/docs/v5/asset/master-deposit-addr
|
4684
4684
|
:param str code: unified currency code of the currency for the deposit address
|
4685
4685
|
:param dict [params]: extra parameters specific to the bybit api endpoint
|
4686
4686
|
:returns dict: a dictionary of `address structures <https://github.com/ccxt/ccxt/wiki/Manual#address-structure>` indexed by the network
|
@@ -4722,7 +4722,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
4722
4722
|
async def fetch_deposit_address(self, code: str, params={}):
|
4723
4723
|
"""
|
4724
4724
|
fetch the deposit address for a currency associated with self account
|
4725
|
-
see https://bybit-exchange.github.io/docs/v5/asset/master-deposit-addr
|
4725
|
+
:see: https://bybit-exchange.github.io/docs/v5/asset/master-deposit-addr
|
4726
4726
|
:param str code: unified currency code
|
4727
4727
|
:param dict [params]: extra parameters specific to the bybit api endpoint
|
4728
4728
|
:returns dict: an `address structure <https://github.com/ccxt/ccxt/wiki/Manual#address-structure>`
|
@@ -4766,7 +4766,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
4766
4766
|
async def fetch_deposits(self, code: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
4767
4767
|
"""
|
4768
4768
|
fetch all deposits made to an account
|
4769
|
-
see https://bybit-exchange.github.io/docs/v5/asset/deposit-record
|
4769
|
+
:see: https://bybit-exchange.github.io/docs/v5/asset/deposit-record
|
4770
4770
|
:param str code: unified currency code
|
4771
4771
|
:param int [since]: the earliest time in ms to fetch deposits for, default = 30 days before the current time
|
4772
4772
|
:param int [limit]: the maximum number of deposits structures to retrieve, default = 50, max = 50
|
@@ -4831,7 +4831,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
4831
4831
|
async def fetch_withdrawals(self, code: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
4832
4832
|
"""
|
4833
4833
|
fetch all withdrawals made from an account
|
4834
|
-
see https://bybit-exchange.github.io/docs/v5/asset/withdraw-record
|
4834
|
+
:see: https://bybit-exchange.github.io/docs/v5/asset/withdraw-record
|
4835
4835
|
:param str code: unified currency code
|
4836
4836
|
:param int [since]: the earliest time in ms to fetch withdrawals for
|
4837
4837
|
:param int [limit]: the maximum number of withdrawals structures to retrieve
|
@@ -5007,7 +5007,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
5007
5007
|
async def fetch_ledger(self, code: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
5008
5008
|
"""
|
5009
5009
|
fetch the history of changes, actions done by the user or operations that altered balance of the user
|
5010
|
-
see https://bybit-exchange.github.io/docs/v5/account/transaction-log
|
5010
|
+
:see: https://bybit-exchange.github.io/docs/v5/account/transaction-log
|
5011
5011
|
:param str code: unified currency code, default is None
|
5012
5012
|
:param int [since]: timestamp in ms of the earliest ledger entry, default is None
|
5013
5013
|
:param int [limit]: max number of ledger entrys to return, default is None
|
@@ -5258,7 +5258,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
5258
5258
|
async def withdraw(self, code: str, amount, address, tag=None, params={}):
|
5259
5259
|
"""
|
5260
5260
|
make a withdrawal
|
5261
|
-
see https://bybit-exchange.github.io/docs/v5/asset/withdraw
|
5261
|
+
:see: https://bybit-exchange.github.io/docs/v5/asset/withdraw
|
5262
5262
|
:param str code: unified currency code
|
5263
5263
|
:param float amount: the amount to withdraw
|
5264
5264
|
:param str address: the address to withdraw to
|
@@ -5300,7 +5300,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
5300
5300
|
async def fetch_position(self, symbol: str, params={}):
|
5301
5301
|
"""
|
5302
5302
|
fetch data on a single open contract trade position
|
5303
|
-
see https://bybit-exchange.github.io/docs/v5/position
|
5303
|
+
:see: https://bybit-exchange.github.io/docs/v5/position
|
5304
5304
|
:param str symbol: unified market symbol of the market the position is held in, default is None
|
5305
5305
|
:param dict [params]: extra parameters specific to the bybit api endpoint
|
5306
5306
|
:returns dict: a `position structure <https://github.com/ccxt/ccxt/wiki/Manual#position-structure>`
|
@@ -5445,7 +5445,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
5445
5445
|
async def fetch_positions(self, symbols: Optional[List[str]] = None, params={}):
|
5446
5446
|
"""
|
5447
5447
|
fetch all open positions
|
5448
|
-
see https://bybit-exchange.github.io/docs/v5/position
|
5448
|
+
:see: https://bybit-exchange.github.io/docs/v5/position
|
5449
5449
|
:param str[] symbols: list of unified market symbols
|
5450
5450
|
:param dict [params]: extra parameters specific to the bybit api endpoint
|
5451
5451
|
:param str [params.type]: market type, ['swap', 'option', 'spot']
|
@@ -5735,8 +5735,8 @@ class bybit(Exchange, ImplicitAPI):
|
|
5735
5735
|
async def set_margin_mode(self, marginMode, symbol: Optional[str] = None, params={}):
|
5736
5736
|
"""
|
5737
5737
|
set margin mode(account) or trade mode(symbol)
|
5738
|
-
see https://bybit-exchange.github.io/docs/v5/account/set-margin-mode
|
5739
|
-
see https://bybit-exchange.github.io/docs/v5/position/cross-isolate
|
5738
|
+
:see: https://bybit-exchange.github.io/docs/v5/account/set-margin-mode
|
5739
|
+
:see: https://bybit-exchange.github.io/docs/v5/position/cross-isolate
|
5740
5740
|
:param str marginMode: account mode must be either [isolated, cross, portfolio], trade mode must be either [isolated, cross]
|
5741
5741
|
:param str symbol: unified market symbol of the market the position is held in, default is None
|
5742
5742
|
:param dict [params]: extra parameters specific to the bybit api endpoint
|
@@ -5817,7 +5817,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
5817
5817
|
async def set_leverage(self, leverage, symbol: Optional[str] = None, params={}):
|
5818
5818
|
"""
|
5819
5819
|
set the level of leverage for a market
|
5820
|
-
see https://bybit-exchange.github.io/docs/v5/position/leverage
|
5820
|
+
:see: https://bybit-exchange.github.io/docs/v5/position/leverage
|
5821
5821
|
:param float leverage: the rate of leverage
|
5822
5822
|
:param str symbol: unified market symbol
|
5823
5823
|
:param dict [params]: extra parameters specific to the bybit api endpoint
|
@@ -5860,7 +5860,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
5860
5860
|
async def set_position_mode(self, hedged, symbol: Optional[str] = None, params={}):
|
5861
5861
|
"""
|
5862
5862
|
set hedged to True or False for a market
|
5863
|
-
see https://bybit-exchange.github.io/docs/v5/position/position-mode
|
5863
|
+
:see: https://bybit-exchange.github.io/docs/v5/position/position-mode
|
5864
5864
|
:param bool hedged:
|
5865
5865
|
:param str symbol: used for unified account with inverse market
|
5866
5866
|
:param dict [params]: extra parameters specific to the bybit api endpoint
|
@@ -5956,7 +5956,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
5956
5956
|
async def fetch_open_interest(self, symbol: str, params={}):
|
5957
5957
|
"""
|
5958
5958
|
Retrieves the open interest of a derivative trading pair
|
5959
|
-
see https://bybit-exchange.github.io/docs/v5/market/open-interest
|
5959
|
+
:see: https://bybit-exchange.github.io/docs/v5/market/open-interest
|
5960
5960
|
:param str symbol: Unified CCXT market symbol
|
5961
5961
|
:param dict [params]: exchange specific parameters
|
5962
5962
|
:param str [params.interval]: 5m, 15m, 30m, 1h, 4h, 1d
|
@@ -6012,7 +6012,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
6012
6012
|
async def fetch_open_interest_history(self, symbol: str, timeframe='1h', since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
6013
6013
|
"""
|
6014
6014
|
Gets the total amount of unsettled contracts. In other words, the total number of contracts held in open positions
|
6015
|
-
see https://bybit-exchange.github.io/docs/v5/market/open-interest
|
6015
|
+
:see: https://bybit-exchange.github.io/docs/v5/market/open-interest
|
6016
6016
|
:param str symbol: Unified market symbol
|
6017
6017
|
:param str timeframe: "5m", 15m, 30m, 1h, 4h, 1d
|
6018
6018
|
:param int [since]: Not used by Bybit
|
@@ -6058,7 +6058,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
6058
6058
|
async def fetch_borrow_rate(self, code: str, params={}):
|
6059
6059
|
"""
|
6060
6060
|
fetch the rate of interest to borrow a currency for margin trading
|
6061
|
-
see https://bybit-exchange.github.io/docs/zh-TW/v5/spot-margin-normal/interest-quota
|
6061
|
+
:see: https://bybit-exchange.github.io/docs/zh-TW/v5/spot-margin-normal/interest-quota
|
6062
6062
|
:param str code: unified currency code
|
6063
6063
|
:param dict [params]: extra parameters specific to the bybit api endpoint
|
6064
6064
|
:returns dict: a `borrow rate structure <https://github.com/ccxt/ccxt/wiki/Manual#borrow-rate-structure>`
|
@@ -6109,7 +6109,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
6109
6109
|
async def fetch_borrow_interest(self, code: Optional[str] = None, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
6110
6110
|
"""
|
6111
6111
|
fetch the interest owed by the user for borrowing currency for margin trading
|
6112
|
-
see https://bybit-exchange.github.io/docs/zh-TW/v5/spot-margin-normal/account-info
|
6112
|
+
:see: https://bybit-exchange.github.io/docs/zh-TW/v5/spot-margin-normal/account-info
|
6113
6113
|
:param str code: unified currency code
|
6114
6114
|
:param str symbol: unified market symbol when fetch interest in isolated markets
|
6115
6115
|
:param number [since]: the earliest time in ms to fetch borrrow interest for
|
@@ -6176,7 +6176,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
6176
6176
|
async def transfer(self, code: str, amount, fromAccount, toAccount, params={}):
|
6177
6177
|
"""
|
6178
6178
|
transfer currency internally between wallets on the same account
|
6179
|
-
see https://bybit-exchange.github.io/docs/v5/asset/create-inter-transfer
|
6179
|
+
:see: https://bybit-exchange.github.io/docs/v5/asset/create-inter-transfer
|
6180
6180
|
:param str code: unified currency code
|
6181
6181
|
:param float amount: amount to transfer
|
6182
6182
|
:param str fromAccount: account to transfer from
|
@@ -6227,7 +6227,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
6227
6227
|
async def fetch_transfers(self, code: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
6228
6228
|
"""
|
6229
6229
|
fetch a history of internal transfers made on an account
|
6230
|
-
see https://bybit-exchange.github.io/docs/v5/asset/inter-transfer-list
|
6230
|
+
:see: https://bybit-exchange.github.io/docs/v5/asset/inter-transfer-list
|
6231
6231
|
:param str code: unified currency code of the currency transferred
|
6232
6232
|
:param int [since]: the earliest time in ms to fetch transfers for
|
6233
6233
|
:param int [limit]: the maximum number of transfers structures to retrieve
|
@@ -6280,7 +6280,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
6280
6280
|
async def borrow_margin(self, code: str, amount, symbol: Optional[str] = None, params={}):
|
6281
6281
|
"""
|
6282
6282
|
create a loan to borrow margin
|
6283
|
-
see https://bybit-exchange.github.io/docs/v5/spot-margin-normal/borrow
|
6283
|
+
:see: https://bybit-exchange.github.io/docs/v5/spot-margin-normal/borrow
|
6284
6284
|
:param str code: unified currency code of the currency to borrow
|
6285
6285
|
:param float amount: the amount to borrow
|
6286
6286
|
:param str symbol: not used by bybit.borrowMargin()
|
@@ -6318,7 +6318,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
6318
6318
|
async def repay_margin(self, code: str, amount, symbol: Optional[str] = None, params={}):
|
6319
6319
|
"""
|
6320
6320
|
repay borrowed margin and interest
|
6321
|
-
see https://bybit-exchange.github.io/docs/v5/spot-margin-normal/repay
|
6321
|
+
:see: https://bybit-exchange.github.io/docs/v5/spot-margin-normal/repay
|
6322
6322
|
:param str code: unified currency code of the currency to repay
|
6323
6323
|
:param float amount: the amount to repay
|
6324
6324
|
:param str symbol: not used by bybit.repayMargin()
|
@@ -6465,7 +6465,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
6465
6465
|
async def fetch_market_leverage_tiers(self, symbol: str, params={}):
|
6466
6466
|
"""
|
6467
6467
|
retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes for a single market
|
6468
|
-
see https://bybit-exchange.github.io/docs/v5/market/risk-limit
|
6468
|
+
:see: https://bybit-exchange.github.io/docs/v5/market/risk-limit
|
6469
6469
|
:param str symbol: unified market symbol
|
6470
6470
|
:param dict [params]: extra parameters specific to the bybit api endpoint
|
6471
6471
|
:returns dict: a `leverage tiers structure <https://github.com/ccxt/ccxt/wiki/Manual#leverage-tiers-structure>`
|
@@ -6528,7 +6528,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
6528
6528
|
async def fetch_trading_fee(self, symbol: str, params={}):
|
6529
6529
|
"""
|
6530
6530
|
fetch the trading fees for a market
|
6531
|
-
see https://bybit-exchange.github.io/docs/v5/account/fee-rate
|
6531
|
+
:see: https://bybit-exchange.github.io/docs/v5/account/fee-rate
|
6532
6532
|
:param str symbol: unified market symbol
|
6533
6533
|
:param dict [params]: extra parameters specific to the bybit api endpoint
|
6534
6534
|
:returns dict: a `fee structure <https://github.com/ccxt/ccxt/wiki/Manual#fee-structure>`
|
@@ -6566,7 +6566,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
6566
6566
|
async def fetch_trading_fees(self, params={}):
|
6567
6567
|
"""
|
6568
6568
|
fetch the trading fees for multiple markets
|
6569
|
-
see https://bybit-exchange.github.io/docs/v5/account/fee-rate
|
6569
|
+
:see: https://bybit-exchange.github.io/docs/v5/account/fee-rate
|
6570
6570
|
:param dict [params]: extra parameters specific to the bybit api endpoint
|
6571
6571
|
:param str [params.type]: market type, ['swap', 'option', 'spot']
|
6572
6572
|
:returns dict: a dictionary of `fee structures <https://github.com/ccxt/ccxt/wiki/Manual#fee-structure>` indexed by market symbols
|
@@ -6656,7 +6656,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
6656
6656
|
async def fetch_deposit_withdraw_fees(self, codes: Optional[List[str]] = None, params={}):
|
6657
6657
|
"""
|
6658
6658
|
fetch deposit and withdraw fees
|
6659
|
-
see https://bybit-exchange.github.io/docs/v5/asset/coin-info
|
6659
|
+
:see: https://bybit-exchange.github.io/docs/v5/asset/coin-info
|
6660
6660
|
:param str[] codes: list of unified currency codes
|
6661
6661
|
:param dict [params]: extra parameters specific to the bybit api endpoint
|
6662
6662
|
:returns dict: a list of `fee structures <https://github.com/ccxt/ccxt/wiki/Manual#fee-structure>`
|
@@ -6701,7 +6701,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
6701
6701
|
async def fetch_settlement_history(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
6702
6702
|
"""
|
6703
6703
|
fetches historical settlement records
|
6704
|
-
see https://bybit-exchange.github.io/docs/v5/market/delivery-price
|
6704
|
+
:see: https://bybit-exchange.github.io/docs/v5/market/delivery-price
|
6705
6705
|
:param str symbol: unified market symbol of the settlement history
|
6706
6706
|
:param int [since]: timestamp in ms
|
6707
6707
|
:param int [limit]: number of records
|
@@ -6752,7 +6752,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
6752
6752
|
async def fetch_my_settlement_history(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
6753
6753
|
"""
|
6754
6754
|
fetches historical settlement records of the user
|
6755
|
-
see https://bybit-exchange.github.io/docs/v5/asset/delivery
|
6755
|
+
:see: https://bybit-exchange.github.io/docs/v5/asset/delivery
|
6756
6756
|
:param str symbol: unified market symbol of the settlement history
|
6757
6757
|
:param int [since]: timestamp in ms
|
6758
6758
|
:param int [limit]: number of records
|
@@ -6873,7 +6873,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
6873
6873
|
async def fetch_volatility_history(self, code: str, params={}):
|
6874
6874
|
"""
|
6875
6875
|
fetch the historical volatility of an option market based on an underlying asset
|
6876
|
-
see https://bybit-exchange.github.io/docs/v5/market/iv
|
6876
|
+
:see: https://bybit-exchange.github.io/docs/v5/market/iv
|
6877
6877
|
:param str code: unified currency code
|
6878
6878
|
:param dict [params]: extra parameters specific to the bybit api endpoint
|
6879
6879
|
:param int [params.period]: the period in days to fetch the volatility for: 7,14,21,30,60,90,180,270
|
ccxt/async_support/cex.py
CHANGED
@@ -715,7 +715,7 @@ class cex(Exchange, ImplicitAPI):
|
|
715
715
|
async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount, price=None, params={}):
|
716
716
|
"""
|
717
717
|
create a trade order
|
718
|
-
see https://cex.io/rest-api#place-order
|
718
|
+
:see: https://cex.io/rest-api#place-order
|
719
719
|
:param str symbol: unified symbol of the market to create an order in
|
720
720
|
:param str type: 'market' or 'limit'
|
721
721
|
:param str side: 'buy' or 'sell'
|
ccxt/async_support/coinbase.py
CHANGED
@@ -1892,7 +1892,7 @@ class coinbase(Exchange, ImplicitAPI):
|
|
1892
1892
|
async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount, price=None, params={}):
|
1893
1893
|
"""
|
1894
1894
|
create a trade order
|
1895
|
-
see https://docs.cloud.coinbase.com/advanced-trade-api/reference/retailbrokerageapi_postorder
|
1895
|
+
:see: https://docs.cloud.coinbase.com/advanced-trade-api/reference/retailbrokerageapi_postorder
|
1896
1896
|
:param str symbol: unified symbol of the market to create an order in
|
1897
1897
|
:param str type: 'market' or 'limit'
|
1898
1898
|
:param str side: 'buy' or 'sell'
|
@@ -2188,7 +2188,7 @@ class coinbase(Exchange, ImplicitAPI):
|
|
2188
2188
|
async def cancel_order(self, id: str, symbol: Optional[str] = None, params={}):
|
2189
2189
|
"""
|
2190
2190
|
cancels an open order
|
2191
|
-
see https://docs.cloud.coinbase.com/advanced-trade-api/reference/retailbrokerageapi_cancelorders
|
2191
|
+
:see: https://docs.cloud.coinbase.com/advanced-trade-api/reference/retailbrokerageapi_cancelorders
|
2192
2192
|
:param str id: order id
|
2193
2193
|
:param str symbol: not used by coinbase cancelOrder()
|
2194
2194
|
:param dict [params]: extra parameters specific to the coinbase api endpoint
|
@@ -2201,7 +2201,7 @@ class coinbase(Exchange, ImplicitAPI):
|
|
2201
2201
|
async def cancel_orders(self, ids, symbol: Optional[str] = None, params={}):
|
2202
2202
|
"""
|
2203
2203
|
cancel multiple orders
|
2204
|
-
see https://docs.cloud.coinbase.com/advanced-trade-api/reference/retailbrokerageapi_cancelorders
|
2204
|
+
:see: https://docs.cloud.coinbase.com/advanced-trade-api/reference/retailbrokerageapi_cancelorders
|
2205
2205
|
:param str[] ids: order ids
|
2206
2206
|
:param str symbol: not used by coinbase cancelOrders()
|
2207
2207
|
:param dict [params]: extra parameters specific to the coinbase api endpoint
|
@@ -2236,7 +2236,7 @@ class coinbase(Exchange, ImplicitAPI):
|
|
2236
2236
|
async def fetch_order(self, id: str, symbol: Optional[str] = None, params={}):
|
2237
2237
|
"""
|
2238
2238
|
fetches information on an order made by the user
|
2239
|
-
see https://docs.cloud.coinbase.com/advanced-trade-api/reference/retailbrokerageapi_gethistoricalorder
|
2239
|
+
:see: https://docs.cloud.coinbase.com/advanced-trade-api/reference/retailbrokerageapi_gethistoricalorder
|
2240
2240
|
:param str id: the order id
|
2241
2241
|
:param str symbol: unified market symbol that the order was made in
|
2242
2242
|
:param dict [params]: extra parameters specific to the coinbase api endpoint
|
@@ -2295,7 +2295,7 @@ class coinbase(Exchange, ImplicitAPI):
|
|
2295
2295
|
async def fetch_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit=100, params={}):
|
2296
2296
|
"""
|
2297
2297
|
fetches information on multiple orders made by the user
|
2298
|
-
see https://docs.cloud.coinbase.com/advanced-trade-api/reference/retailbrokerageapi_gethistoricalorders
|
2298
|
+
:see: https://docs.cloud.coinbase.com/advanced-trade-api/reference/retailbrokerageapi_gethistoricalorders
|
2299
2299
|
:param str symbol: unified market symbol that the orders were made in
|
2300
2300
|
:param int [since]: the earliest time in ms to fetch orders
|
2301
2301
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -2447,7 +2447,7 @@ class coinbase(Exchange, ImplicitAPI):
|
|
2447
2447
|
async def fetch_open_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2448
2448
|
"""
|
2449
2449
|
fetches information on all currently open orders
|
2450
|
-
see https://docs.cloud.coinbase.com/advanced-trade-api/reference/retailbrokerageapi_gethistoricalorders
|
2450
|
+
:see: https://docs.cloud.coinbase.com/advanced-trade-api/reference/retailbrokerageapi_gethistoricalorders
|
2451
2451
|
:param str symbol: unified market symbol of the orders
|
2452
2452
|
:param int [since]: timestamp in ms of the earliest order, default is None
|
2453
2453
|
:param int [limit]: the maximum number of open order structures to retrieve
|
@@ -2466,7 +2466,7 @@ class coinbase(Exchange, ImplicitAPI):
|
|
2466
2466
|
async def fetch_closed_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2467
2467
|
"""
|
2468
2468
|
fetches information on multiple closed orders made by the user
|
2469
|
-
see https://docs.cloud.coinbase.com/advanced-trade-api/reference/retailbrokerageapi_gethistoricalorders
|
2469
|
+
:see: https://docs.cloud.coinbase.com/advanced-trade-api/reference/retailbrokerageapi_gethistoricalorders
|
2470
2470
|
:param str symbol: unified market symbol of the orders
|
2471
2471
|
:param int [since]: timestamp in ms of the earliest order, default is None
|
2472
2472
|
:param int [limit]: the maximum number of closed order structures to retrieve
|
@@ -2485,7 +2485,7 @@ class coinbase(Exchange, ImplicitAPI):
|
|
2485
2485
|
async def fetch_canceled_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2486
2486
|
"""
|
2487
2487
|
fetches information on multiple canceled orders made by the user
|
2488
|
-
see https://docs.cloud.coinbase.com/advanced-trade-api/reference/retailbrokerageapi_gethistoricalorders
|
2488
|
+
:see: https://docs.cloud.coinbase.com/advanced-trade-api/reference/retailbrokerageapi_gethistoricalorders
|
2489
2489
|
:param str symbol: unified market symbol of the orders
|
2490
2490
|
:param int [since]: timestamp in ms of the earliest order, default is None
|
2491
2491
|
:param int [limit]: the maximum number of canceled order structures to retrieve
|
@@ -2497,7 +2497,7 @@ class coinbase(Exchange, ImplicitAPI):
|
|
2497
2497
|
async def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2498
2498
|
"""
|
2499
2499
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
2500
|
-
see https://docs.cloud.coinbase.com/advanced-trade-api/reference/retailbrokerageapi_getcandles
|
2500
|
+
:see: https://docs.cloud.coinbase.com/advanced-trade-api/reference/retailbrokerageapi_getcandles
|
2501
2501
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
2502
2502
|
:param str timeframe: the length of time each candle represents
|
2503
2503
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -2576,7 +2576,7 @@ class coinbase(Exchange, ImplicitAPI):
|
|
2576
2576
|
async def fetch_trades(self, symbol: str, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2577
2577
|
"""
|
2578
2578
|
get the list of most recent trades for a particular symbol
|
2579
|
-
see https://docs.cloud.coinbase.com/advanced-trade-api/reference/retailbrokerageapi_getmarkettrades
|
2579
|
+
:see: https://docs.cloud.coinbase.com/advanced-trade-api/reference/retailbrokerageapi_getmarkettrades
|
2580
2580
|
:param str symbol: unified market symbol of the trades
|
2581
2581
|
:param int [since]: not used by coinbase fetchTrades
|
2582
2582
|
:param int [limit]: the maximum number of trade structures to fetch
|
@@ -2613,7 +2613,7 @@ class coinbase(Exchange, ImplicitAPI):
|
|
2613
2613
|
async def fetch_my_trades(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2614
2614
|
"""
|
2615
2615
|
fetch all trades made by the user
|
2616
|
-
see https://docs.cloud.coinbase.com/advanced-trade-api/reference/retailbrokerageapi_getfills
|
2616
|
+
:see: https://docs.cloud.coinbase.com/advanced-trade-api/reference/retailbrokerageapi_getfills
|
2617
2617
|
:param str symbol: unified market symbol of the trades
|
2618
2618
|
:param int [since]: timestamp in ms of the earliest order, default is None
|
2619
2619
|
:param int [limit]: the maximum number of trade structures to fetch
|
@@ -2676,7 +2676,7 @@ class coinbase(Exchange, ImplicitAPI):
|
|
2676
2676
|
async def fetch_order_book(self, symbol: str, limit: Optional[int] = None, params={}):
|
2677
2677
|
"""
|
2678
2678
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
2679
|
-
see https://docs.cloud.coinbase.com/advanced-trade-api/reference/retailbrokerageapi_getproductbook
|
2679
|
+
:see: https://docs.cloud.coinbase.com/advanced-trade-api/reference/retailbrokerageapi_getproductbook
|
2680
2680
|
:param str symbol: unified symbol of the market to fetch the order book for
|
2681
2681
|
:param int [limit]: the maximum amount of order book entries to return
|
2682
2682
|
:param dict [params]: extra parameters specific to the coinbase api endpoint
|
@@ -2718,7 +2718,7 @@ class coinbase(Exchange, ImplicitAPI):
|
|
2718
2718
|
async def fetch_bids_asks(self, symbols: Optional[List[str]] = None, params={}):
|
2719
2719
|
"""
|
2720
2720
|
fetches the bid and ask price and volume for multiple markets
|
2721
|
-
see https://docs.cloud.coinbase.com/advanced-trade-api/reference/retailbrokerageapi_getbestbidask
|
2721
|
+
:see: https://docs.cloud.coinbase.com/advanced-trade-api/reference/retailbrokerageapi_getbestbidask
|
2722
2722
|
:param str[] [symbols]: unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
|
2723
2723
|
:param dict [params]: extra parameters specific to the coinbase api endpoint
|
2724
2724
|
:returns dict: a dictionary of `ticker structures <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
|