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/bybit.py
CHANGED
@@ -1454,7 +1454,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
1454
1454
|
def fetch_time(self, params={}):
|
1455
1455
|
"""
|
1456
1456
|
fetches the current integer timestamp in milliseconds from the exchange server
|
1457
|
-
see https://bybit-exchange.github.io/docs/v5/market/time
|
1457
|
+
:see: https://bybit-exchange.github.io/docs/v5/market/time
|
1458
1458
|
:param dict [params]: extra parameters specific to the bybit api endpoint
|
1459
1459
|
:returns int: the current integer timestamp in milliseconds from the exchange server
|
1460
1460
|
"""
|
@@ -1476,7 +1476,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
1476
1476
|
def fetch_currencies(self, params={}):
|
1477
1477
|
"""
|
1478
1478
|
fetches all available currencies on an exchange
|
1479
|
-
see https://bybit-exchange.github.io/docs/v5/asset/coin-info
|
1479
|
+
:see: https://bybit-exchange.github.io/docs/v5/asset/coin-info
|
1480
1480
|
:param dict [params]: extra parameters specific to the bybit api endpoint
|
1481
1481
|
:returns dict: an associative dictionary of currencies
|
1482
1482
|
"""
|
@@ -1599,7 +1599,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
1599
1599
|
def fetch_markets(self, params={}):
|
1600
1600
|
"""
|
1601
1601
|
retrieves data on all markets for bybit
|
1602
|
-
see https://bybit-exchange.github.io/docs/v5/market/instrument
|
1602
|
+
:see: https://bybit-exchange.github.io/docs/v5/market/instrument
|
1603
1603
|
:param dict [params]: extra parameters specific to the exchange api endpoint
|
1604
1604
|
:returns dict[]: an array of objects representing market data
|
1605
1605
|
"""
|
@@ -2144,7 +2144,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
2144
2144
|
def fetch_ticker(self, symbol: str, params={}):
|
2145
2145
|
"""
|
2146
2146
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
2147
|
-
see https://bybit-exchange.github.io/docs/v5/market/tickers
|
2147
|
+
:see: https://bybit-exchange.github.io/docs/v5/market/tickers
|
2148
2148
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
2149
2149
|
:param dict [params]: extra parameters specific to the bybit api endpoint
|
2150
2150
|
:returns dict: a `ticker structure <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
|
@@ -2213,7 +2213,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
2213
2213
|
def fetch_tickers(self, symbols: Optional[List[str]] = None, params={}):
|
2214
2214
|
"""
|
2215
2215
|
fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
2216
|
-
see https://bybit-exchange.github.io/docs/v5/market/tickers
|
2216
|
+
:see: https://bybit-exchange.github.io/docs/v5/market/tickers
|
2217
2217
|
:param str[] symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
2218
2218
|
:param dict [params]: extra parameters specific to the bybit api endpoint
|
2219
2219
|
:returns dict: an array of `ticker structures <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
|
@@ -2321,10 +2321,10 @@ class bybit(Exchange, ImplicitAPI):
|
|
2321
2321
|
def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2322
2322
|
"""
|
2323
2323
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
2324
|
-
see https://bybit-exchange.github.io/docs/v5/market/kline
|
2325
|
-
see https://bybit-exchange.github.io/docs/v5/market/mark-kline
|
2326
|
-
see https://bybit-exchange.github.io/docs/v5/market/index-kline
|
2327
|
-
see https://bybit-exchange.github.io/docs/v5/market/preimum-index-kline
|
2324
|
+
:see: https://bybit-exchange.github.io/docs/v5/market/kline
|
2325
|
+
:see: https://bybit-exchange.github.io/docs/v5/market/mark-kline
|
2326
|
+
:see: https://bybit-exchange.github.io/docs/v5/market/index-kline
|
2327
|
+
:see: https://bybit-exchange.github.io/docs/v5/market/preimum-index-kline
|
2328
2328
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
2329
2329
|
:param str timeframe: the length of time each candle represents
|
2330
2330
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -2472,7 +2472,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
2472
2472
|
def fetch_funding_rates(self, symbols: Optional[List[str]] = None, params={}):
|
2473
2473
|
"""
|
2474
2474
|
fetches funding rates for multiple markets
|
2475
|
-
see https://bybit-exchange.github.io/docs/v5/market/tickers
|
2475
|
+
:see: https://bybit-exchange.github.io/docs/v5/market/tickers
|
2476
2476
|
:param str[] symbols: unified symbols of the markets to fetch the funding rates for, all market funding rates are returned if not assigned
|
2477
2477
|
:param dict [params]: extra parameters specific to the bybit api endpoint
|
2478
2478
|
:returns dict: an array of `funding rate structures <https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure>`
|
@@ -2546,7 +2546,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
2546
2546
|
def fetch_funding_rate_history(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2547
2547
|
"""
|
2548
2548
|
fetches historical funding rate prices
|
2549
|
-
see https://bybit-exchange.github.io/docs/v5/market/history-fund-rate
|
2549
|
+
:see: https://bybit-exchange.github.io/docs/v5/market/history-fund-rate
|
2550
2550
|
:param str symbol: unified symbol of the market to fetch the funding rate history for
|
2551
2551
|
:param int [since]: timestamp in ms of the earliest funding rate to fetch
|
2552
2552
|
:param int [limit]: the maximum amount of `funding rate structures <https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure>` to fetch
|
@@ -2681,7 +2681,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
2681
2681
|
feeToken = self.safe_string(trade, 'feeTokenId')
|
2682
2682
|
feeCurrency = self.safe_currency_code(feeToken)
|
2683
2683
|
fee = {
|
2684
|
-
'cost':
|
2684
|
+
'cost': feeCost,
|
2685
2685
|
'currency': feeCurrency,
|
2686
2686
|
}
|
2687
2687
|
return self.safe_trade({
|
@@ -2832,7 +2832,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
2832
2832
|
else:
|
2833
2833
|
feeCurrencyCode = market['base'] if market['inverse'] else market['settle']
|
2834
2834
|
fee = {
|
2835
|
-
'cost':
|
2835
|
+
'cost': feeCostString,
|
2836
2836
|
'currency': feeCurrencyCode,
|
2837
2837
|
}
|
2838
2838
|
return self.safe_trade({
|
@@ -2854,7 +2854,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
2854
2854
|
def fetch_trades(self, symbol: str, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2855
2855
|
"""
|
2856
2856
|
get the list of most recent trades for a particular symbol
|
2857
|
-
see https://bybit-exchange.github.io/docs/v5/market/recent-trade
|
2857
|
+
:see: https://bybit-exchange.github.io/docs/v5/market/recent-trade
|
2858
2858
|
:param str symbol: unified symbol of the market to fetch trades for
|
2859
2859
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
2860
2860
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -2908,7 +2908,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
2908
2908
|
def fetch_order_book(self, symbol: str, limit: Optional[int] = None, params={}):
|
2909
2909
|
"""
|
2910
2910
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
2911
|
-
see https://bybit-exchange.github.io/docs/v5/market/orderbook
|
2911
|
+
:see: https://bybit-exchange.github.io/docs/v5/market/orderbook
|
2912
2912
|
:param str symbol: unified symbol of the market to fetch the order book for
|
2913
2913
|
:param int [limit]: the maximum amount of order book entries to return
|
2914
2914
|
:param dict [params]: extra parameters specific to the bybit api endpoint
|
@@ -3117,9 +3117,9 @@ class bybit(Exchange, ImplicitAPI):
|
|
3117
3117
|
def fetch_balance(self, params={}):
|
3118
3118
|
"""
|
3119
3119
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
3120
|
-
see https://bybit-exchange.github.io/docs/v5/spot-margin-normal/account-info
|
3121
|
-
see https://bybit-exchange.github.io/docs/v5/asset/all-balance
|
3122
|
-
see https://bybit-exchange.github.io/docs/v5/account/wallet-balance
|
3120
|
+
:see: https://bybit-exchange.github.io/docs/v5/spot-margin-normal/account-info
|
3121
|
+
:see: https://bybit-exchange.github.io/docs/v5/asset/all-balance
|
3122
|
+
:see: https://bybit-exchange.github.io/docs/v5/account/wallet-balance
|
3123
3123
|
:param dict [params]: extra parameters specific to the bybit api endpoint
|
3124
3124
|
:param str [params.type]: wallet type, ['spot', 'swap', 'fund']
|
3125
3125
|
:returns dict: a `balance structure <https://docs.ccxt.com/en/latest/manual.html?#balance-structure>`
|
@@ -3471,7 +3471,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
3471
3471
|
def fetch_order(self, id: str, symbol: Optional[str] = None, params={}):
|
3472
3472
|
"""
|
3473
3473
|
fetches information on an order made by the user
|
3474
|
-
see https://bybit-exchange.github.io/docs/v5/order/order-list
|
3474
|
+
:see: https://bybit-exchange.github.io/docs/v5/order/order-list
|
3475
3475
|
:param str symbol: unified symbol of the market the order was made in
|
3476
3476
|
:param dict [params]: extra parameters specific to the bybit api endpoint
|
3477
3477
|
:returns dict: An `order structure <https://github.com/ccxt/ccxt/wiki/Manual#order-structure>`
|
@@ -3492,7 +3492,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
3492
3492
|
def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount, price=None, params={}):
|
3493
3493
|
"""
|
3494
3494
|
create a trade order
|
3495
|
-
see https://bybit-exchange.github.io/docs/v5/order/create-order
|
3495
|
+
:see: https://bybit-exchange.github.io/docs/v5/order/create-order
|
3496
3496
|
:param str symbol: unified symbol of the market to create an order in
|
3497
3497
|
:param str type: 'market' or 'limit'
|
3498
3498
|
:param str side: 'buy' or 'sell'
|
@@ -3816,9 +3816,9 @@ class bybit(Exchange, ImplicitAPI):
|
|
3816
3816
|
def edit_order(self, id: str, symbol, type, side, amount=None, price=None, params={}):
|
3817
3817
|
"""
|
3818
3818
|
edit a trade order
|
3819
|
-
see https://bybit-exchange.github.io/docs/v5/order/amend-order
|
3820
|
-
see https://bybit-exchange.github.io/docs/derivatives/unified/replace-order
|
3821
|
-
see https://bybit-exchange.github.io/docs/api-explorer/derivatives/trade/contract/replace-order
|
3819
|
+
:see: https://bybit-exchange.github.io/docs/v5/order/amend-order
|
3820
|
+
:see: https://bybit-exchange.github.io/docs/derivatives/unified/replace-order
|
3821
|
+
:see: https://bybit-exchange.github.io/docs/api-explorer/derivatives/trade/contract/replace-order
|
3822
3822
|
:param str id: cancel order id
|
3823
3823
|
:param str symbol: unified symbol of the market to create an order in
|
3824
3824
|
:param str type: 'market' or 'limit'
|
@@ -3961,7 +3961,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
3961
3961
|
def cancel_order(self, id: str, symbol: Optional[str] = None, params={}):
|
3962
3962
|
"""
|
3963
3963
|
cancels an open order
|
3964
|
-
see https://bybit-exchange.github.io/docs/v5/order/cancel-order
|
3964
|
+
:see: https://bybit-exchange.github.io/docs/v5/order/cancel-order
|
3965
3965
|
:param str id: order id
|
3966
3966
|
:param str symbol: unified symbol of the market the order was made in
|
3967
3967
|
:param dict [params]: extra parameters specific to the bybit api endpoint
|
@@ -4058,7 +4058,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
4058
4058
|
def cancel_all_orders(self, symbol: Optional[str] = None, params={}):
|
4059
4059
|
"""
|
4060
4060
|
cancel all open orders
|
4061
|
-
see https://bybit-exchange.github.io/docs/v5/order/cancel-all
|
4061
|
+
:see: https://bybit-exchange.github.io/docs/v5/order/cancel-all
|
4062
4062
|
:param str symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
|
4063
4063
|
:param dict [params]: extra parameters specific to the bybit api endpoint
|
4064
4064
|
:param boolean [params.stop]: True if stop order
|
@@ -4213,7 +4213,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
4213
4213
|
def fetch_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
4214
4214
|
"""
|
4215
4215
|
fetches information on multiple orders made by the user
|
4216
|
-
see https://bybit-exchange.github.io/docs/v5/order/order-list
|
4216
|
+
:see: https://bybit-exchange.github.io/docs/v5/order/order-list
|
4217
4217
|
:param str symbol: unified market symbol of the market orders were made in
|
4218
4218
|
:param int [since]: the earliest time in ms to fetch orders for
|
4219
4219
|
:param int [limit]: the maximum number of orde structures to retrieve
|
@@ -4321,7 +4321,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
4321
4321
|
def fetch_closed_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
4322
4322
|
"""
|
4323
4323
|
fetches information on multiple closed orders made by the user
|
4324
|
-
see https://bybit-exchange.github.io/docs/v5/order/order-list
|
4324
|
+
:see: https://bybit-exchange.github.io/docs/v5/order/order-list
|
4325
4325
|
:param str symbol: unified market symbol of the market orders were made in
|
4326
4326
|
:param int [since]: the earliest time in ms to fetch orders for
|
4327
4327
|
:param int [limit]: the maximum number of orde structures to retrieve
|
@@ -4337,7 +4337,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
4337
4337
|
def fetch_canceled_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
4338
4338
|
"""
|
4339
4339
|
fetches information on multiple canceled orders made by the user
|
4340
|
-
see https://bybit-exchange.github.io/docs/v5/order/order-list
|
4340
|
+
:see: https://bybit-exchange.github.io/docs/v5/order/order-list
|
4341
4341
|
:param str symbol: unified market symbol of the market orders were made in
|
4342
4342
|
:param int [since]: timestamp in ms of the earliest order, default is None
|
4343
4343
|
:param int [limit]: max number of orders to return, default is None
|
@@ -4397,7 +4397,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
4397
4397
|
def fetch_open_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
4398
4398
|
"""
|
4399
4399
|
fetch all unfilled currently open orders
|
4400
|
-
see https://bybit-exchange.github.io/docs/v5/order/open-order
|
4400
|
+
:see: https://bybit-exchange.github.io/docs/v5/order/open-order
|
4401
4401
|
:param str symbol: unified market symbol
|
4402
4402
|
:param int [since]: the earliest time in ms to fetch open orders for
|
4403
4403
|
:param int [limit]: the maximum number of open orders structures to retrieve
|
@@ -4497,7 +4497,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
4497
4497
|
def fetch_order_trades(self, id: str, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
4498
4498
|
"""
|
4499
4499
|
fetch all the trades made from a single order
|
4500
|
-
see https://bybit-exchange.github.io/docs/v5/position/execution
|
4500
|
+
:see: https://bybit-exchange.github.io/docs/v5/position/execution
|
4501
4501
|
:param str id: order id
|
4502
4502
|
:param str symbol: unified market symbol
|
4503
4503
|
:param int [since]: the earliest time in ms to fetch trades for
|
@@ -4561,7 +4561,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
4561
4561
|
def fetch_my_trades(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
4562
4562
|
"""
|
4563
4563
|
fetch all trades made by the user
|
4564
|
-
see https://bybit-exchange.github.io/docs/v5/position/execution
|
4564
|
+
:see: https://bybit-exchange.github.io/docs/v5/position/execution
|
4565
4565
|
:param str symbol: unified market symbol
|
4566
4566
|
:param int [since]: the earliest time in ms to fetch trades for
|
4567
4567
|
:param int [limit]: the maximum number of trades structures to retrieve
|
@@ -4679,7 +4679,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
4679
4679
|
def fetch_deposit_addresses_by_network(self, code: str, params={}):
|
4680
4680
|
"""
|
4681
4681
|
fetch a dictionary of addresses for a currency, indexed by network
|
4682
|
-
see https://bybit-exchange.github.io/docs/v5/asset/master-deposit-addr
|
4682
|
+
:see: https://bybit-exchange.github.io/docs/v5/asset/master-deposit-addr
|
4683
4683
|
:param str code: unified currency code of the currency for the deposit address
|
4684
4684
|
:param dict [params]: extra parameters specific to the bybit api endpoint
|
4685
4685
|
:returns dict: a dictionary of `address structures <https://github.com/ccxt/ccxt/wiki/Manual#address-structure>` indexed by the network
|
@@ -4721,7 +4721,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
4721
4721
|
def fetch_deposit_address(self, code: str, params={}):
|
4722
4722
|
"""
|
4723
4723
|
fetch the deposit address for a currency associated with self account
|
4724
|
-
see https://bybit-exchange.github.io/docs/v5/asset/master-deposit-addr
|
4724
|
+
:see: https://bybit-exchange.github.io/docs/v5/asset/master-deposit-addr
|
4725
4725
|
:param str code: unified currency code
|
4726
4726
|
:param dict [params]: extra parameters specific to the bybit api endpoint
|
4727
4727
|
:returns dict: an `address structure <https://github.com/ccxt/ccxt/wiki/Manual#address-structure>`
|
@@ -4765,7 +4765,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
4765
4765
|
def fetch_deposits(self, code: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
4766
4766
|
"""
|
4767
4767
|
fetch all deposits made to an account
|
4768
|
-
see https://bybit-exchange.github.io/docs/v5/asset/deposit-record
|
4768
|
+
:see: https://bybit-exchange.github.io/docs/v5/asset/deposit-record
|
4769
4769
|
:param str code: unified currency code
|
4770
4770
|
:param int [since]: the earliest time in ms to fetch deposits for, default = 30 days before the current time
|
4771
4771
|
:param int [limit]: the maximum number of deposits structures to retrieve, default = 50, max = 50
|
@@ -4830,7 +4830,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
4830
4830
|
def fetch_withdrawals(self, code: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
4831
4831
|
"""
|
4832
4832
|
fetch all withdrawals made from an account
|
4833
|
-
see https://bybit-exchange.github.io/docs/v5/asset/withdraw-record
|
4833
|
+
:see: https://bybit-exchange.github.io/docs/v5/asset/withdraw-record
|
4834
4834
|
:param str code: unified currency code
|
4835
4835
|
:param int [since]: the earliest time in ms to fetch withdrawals for
|
4836
4836
|
:param int [limit]: the maximum number of withdrawals structures to retrieve
|
@@ -5006,7 +5006,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
5006
5006
|
def fetch_ledger(self, code: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
5007
5007
|
"""
|
5008
5008
|
fetch the history of changes, actions done by the user or operations that altered balance of the user
|
5009
|
-
see https://bybit-exchange.github.io/docs/v5/account/transaction-log
|
5009
|
+
:see: https://bybit-exchange.github.io/docs/v5/account/transaction-log
|
5010
5010
|
:param str code: unified currency code, default is None
|
5011
5011
|
:param int [since]: timestamp in ms of the earliest ledger entry, default is None
|
5012
5012
|
:param int [limit]: max number of ledger entrys to return, default is None
|
@@ -5257,7 +5257,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
5257
5257
|
def withdraw(self, code: str, amount, address, tag=None, params={}):
|
5258
5258
|
"""
|
5259
5259
|
make a withdrawal
|
5260
|
-
see https://bybit-exchange.github.io/docs/v5/asset/withdraw
|
5260
|
+
:see: https://bybit-exchange.github.io/docs/v5/asset/withdraw
|
5261
5261
|
:param str code: unified currency code
|
5262
5262
|
:param float amount: the amount to withdraw
|
5263
5263
|
:param str address: the address to withdraw to
|
@@ -5299,7 +5299,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
5299
5299
|
def fetch_position(self, symbol: str, params={}):
|
5300
5300
|
"""
|
5301
5301
|
fetch data on a single open contract trade position
|
5302
|
-
see https://bybit-exchange.github.io/docs/v5/position
|
5302
|
+
:see: https://bybit-exchange.github.io/docs/v5/position
|
5303
5303
|
:param str symbol: unified market symbol of the market the position is held in, default is None
|
5304
5304
|
:param dict [params]: extra parameters specific to the bybit api endpoint
|
5305
5305
|
:returns dict: a `position structure <https://github.com/ccxt/ccxt/wiki/Manual#position-structure>`
|
@@ -5444,7 +5444,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
5444
5444
|
def fetch_positions(self, symbols: Optional[List[str]] = None, params={}):
|
5445
5445
|
"""
|
5446
5446
|
fetch all open positions
|
5447
|
-
see https://bybit-exchange.github.io/docs/v5/position
|
5447
|
+
:see: https://bybit-exchange.github.io/docs/v5/position
|
5448
5448
|
:param str[] symbols: list of unified market symbols
|
5449
5449
|
:param dict [params]: extra parameters specific to the bybit api endpoint
|
5450
5450
|
:param str [params.type]: market type, ['swap', 'option', 'spot']
|
@@ -5734,8 +5734,8 @@ class bybit(Exchange, ImplicitAPI):
|
|
5734
5734
|
def set_margin_mode(self, marginMode, symbol: Optional[str] = None, params={}):
|
5735
5735
|
"""
|
5736
5736
|
set margin mode(account) or trade mode(symbol)
|
5737
|
-
see https://bybit-exchange.github.io/docs/v5/account/set-margin-mode
|
5738
|
-
see https://bybit-exchange.github.io/docs/v5/position/cross-isolate
|
5737
|
+
:see: https://bybit-exchange.github.io/docs/v5/account/set-margin-mode
|
5738
|
+
:see: https://bybit-exchange.github.io/docs/v5/position/cross-isolate
|
5739
5739
|
:param str marginMode: account mode must be either [isolated, cross, portfolio], trade mode must be either [isolated, cross]
|
5740
5740
|
:param str symbol: unified market symbol of the market the position is held in, default is None
|
5741
5741
|
:param dict [params]: extra parameters specific to the bybit api endpoint
|
@@ -5816,7 +5816,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
5816
5816
|
def set_leverage(self, leverage, symbol: Optional[str] = None, params={}):
|
5817
5817
|
"""
|
5818
5818
|
set the level of leverage for a market
|
5819
|
-
see https://bybit-exchange.github.io/docs/v5/position/leverage
|
5819
|
+
:see: https://bybit-exchange.github.io/docs/v5/position/leverage
|
5820
5820
|
:param float leverage: the rate of leverage
|
5821
5821
|
:param str symbol: unified market symbol
|
5822
5822
|
:param dict [params]: extra parameters specific to the bybit api endpoint
|
@@ -5859,7 +5859,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
5859
5859
|
def set_position_mode(self, hedged, symbol: Optional[str] = None, params={}):
|
5860
5860
|
"""
|
5861
5861
|
set hedged to True or False for a market
|
5862
|
-
see https://bybit-exchange.github.io/docs/v5/position/position-mode
|
5862
|
+
:see: https://bybit-exchange.github.io/docs/v5/position/position-mode
|
5863
5863
|
:param bool hedged:
|
5864
5864
|
:param str symbol: used for unified account with inverse market
|
5865
5865
|
:param dict [params]: extra parameters specific to the bybit api endpoint
|
@@ -5955,7 +5955,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
5955
5955
|
def fetch_open_interest(self, symbol: str, params={}):
|
5956
5956
|
"""
|
5957
5957
|
Retrieves the open interest of a derivative trading pair
|
5958
|
-
see https://bybit-exchange.github.io/docs/v5/market/open-interest
|
5958
|
+
:see: https://bybit-exchange.github.io/docs/v5/market/open-interest
|
5959
5959
|
:param str symbol: Unified CCXT market symbol
|
5960
5960
|
:param dict [params]: exchange specific parameters
|
5961
5961
|
:param str [params.interval]: 5m, 15m, 30m, 1h, 4h, 1d
|
@@ -6011,7 +6011,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
6011
6011
|
def fetch_open_interest_history(self, symbol: str, timeframe='1h', since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
6012
6012
|
"""
|
6013
6013
|
Gets the total amount of unsettled contracts. In other words, the total number of contracts held in open positions
|
6014
|
-
see https://bybit-exchange.github.io/docs/v5/market/open-interest
|
6014
|
+
:see: https://bybit-exchange.github.io/docs/v5/market/open-interest
|
6015
6015
|
:param str symbol: Unified market symbol
|
6016
6016
|
:param str timeframe: "5m", 15m, 30m, 1h, 4h, 1d
|
6017
6017
|
:param int [since]: Not used by Bybit
|
@@ -6057,7 +6057,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
6057
6057
|
def fetch_borrow_rate(self, code: str, params={}):
|
6058
6058
|
"""
|
6059
6059
|
fetch the rate of interest to borrow a currency for margin trading
|
6060
|
-
see https://bybit-exchange.github.io/docs/zh-TW/v5/spot-margin-normal/interest-quota
|
6060
|
+
:see: https://bybit-exchange.github.io/docs/zh-TW/v5/spot-margin-normal/interest-quota
|
6061
6061
|
:param str code: unified currency code
|
6062
6062
|
:param dict [params]: extra parameters specific to the bybit api endpoint
|
6063
6063
|
:returns dict: a `borrow rate structure <https://github.com/ccxt/ccxt/wiki/Manual#borrow-rate-structure>`
|
@@ -6108,7 +6108,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
6108
6108
|
def fetch_borrow_interest(self, code: Optional[str] = None, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
6109
6109
|
"""
|
6110
6110
|
fetch the interest owed by the user for borrowing currency for margin trading
|
6111
|
-
see https://bybit-exchange.github.io/docs/zh-TW/v5/spot-margin-normal/account-info
|
6111
|
+
:see: https://bybit-exchange.github.io/docs/zh-TW/v5/spot-margin-normal/account-info
|
6112
6112
|
:param str code: unified currency code
|
6113
6113
|
:param str symbol: unified market symbol when fetch interest in isolated markets
|
6114
6114
|
:param number [since]: the earliest time in ms to fetch borrrow interest for
|
@@ -6175,7 +6175,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
6175
6175
|
def transfer(self, code: str, amount, fromAccount, toAccount, params={}):
|
6176
6176
|
"""
|
6177
6177
|
transfer currency internally between wallets on the same account
|
6178
|
-
see https://bybit-exchange.github.io/docs/v5/asset/create-inter-transfer
|
6178
|
+
:see: https://bybit-exchange.github.io/docs/v5/asset/create-inter-transfer
|
6179
6179
|
:param str code: unified currency code
|
6180
6180
|
:param float amount: amount to transfer
|
6181
6181
|
:param str fromAccount: account to transfer from
|
@@ -6226,7 +6226,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
6226
6226
|
def fetch_transfers(self, code: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
6227
6227
|
"""
|
6228
6228
|
fetch a history of internal transfers made on an account
|
6229
|
-
see https://bybit-exchange.github.io/docs/v5/asset/inter-transfer-list
|
6229
|
+
:see: https://bybit-exchange.github.io/docs/v5/asset/inter-transfer-list
|
6230
6230
|
:param str code: unified currency code of the currency transferred
|
6231
6231
|
:param int [since]: the earliest time in ms to fetch transfers for
|
6232
6232
|
:param int [limit]: the maximum number of transfers structures to retrieve
|
@@ -6279,7 +6279,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
6279
6279
|
def borrow_margin(self, code: str, amount, symbol: Optional[str] = None, params={}):
|
6280
6280
|
"""
|
6281
6281
|
create a loan to borrow margin
|
6282
|
-
see https://bybit-exchange.github.io/docs/v5/spot-margin-normal/borrow
|
6282
|
+
:see: https://bybit-exchange.github.io/docs/v5/spot-margin-normal/borrow
|
6283
6283
|
:param str code: unified currency code of the currency to borrow
|
6284
6284
|
:param float amount: the amount to borrow
|
6285
6285
|
:param str symbol: not used by bybit.borrowMargin()
|
@@ -6317,7 +6317,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
6317
6317
|
def repay_margin(self, code: str, amount, symbol: Optional[str] = None, params={}):
|
6318
6318
|
"""
|
6319
6319
|
repay borrowed margin and interest
|
6320
|
-
see https://bybit-exchange.github.io/docs/v5/spot-margin-normal/repay
|
6320
|
+
:see: https://bybit-exchange.github.io/docs/v5/spot-margin-normal/repay
|
6321
6321
|
:param str code: unified currency code of the currency to repay
|
6322
6322
|
:param float amount: the amount to repay
|
6323
6323
|
:param str symbol: not used by bybit.repayMargin()
|
@@ -6464,7 +6464,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
6464
6464
|
def fetch_market_leverage_tiers(self, symbol: str, params={}):
|
6465
6465
|
"""
|
6466
6466
|
retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes for a single market
|
6467
|
-
see https://bybit-exchange.github.io/docs/v5/market/risk-limit
|
6467
|
+
:see: https://bybit-exchange.github.io/docs/v5/market/risk-limit
|
6468
6468
|
:param str symbol: unified market symbol
|
6469
6469
|
:param dict [params]: extra parameters specific to the bybit api endpoint
|
6470
6470
|
:returns dict: a `leverage tiers structure <https://github.com/ccxt/ccxt/wiki/Manual#leverage-tiers-structure>`
|
@@ -6527,7 +6527,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
6527
6527
|
def fetch_trading_fee(self, symbol: str, params={}):
|
6528
6528
|
"""
|
6529
6529
|
fetch the trading fees for a market
|
6530
|
-
see https://bybit-exchange.github.io/docs/v5/account/fee-rate
|
6530
|
+
:see: https://bybit-exchange.github.io/docs/v5/account/fee-rate
|
6531
6531
|
:param str symbol: unified market symbol
|
6532
6532
|
:param dict [params]: extra parameters specific to the bybit api endpoint
|
6533
6533
|
:returns dict: a `fee structure <https://github.com/ccxt/ccxt/wiki/Manual#fee-structure>`
|
@@ -6565,7 +6565,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
6565
6565
|
def fetch_trading_fees(self, params={}):
|
6566
6566
|
"""
|
6567
6567
|
fetch the trading fees for multiple markets
|
6568
|
-
see https://bybit-exchange.github.io/docs/v5/account/fee-rate
|
6568
|
+
:see: https://bybit-exchange.github.io/docs/v5/account/fee-rate
|
6569
6569
|
:param dict [params]: extra parameters specific to the bybit api endpoint
|
6570
6570
|
:param str [params.type]: market type, ['swap', 'option', 'spot']
|
6571
6571
|
:returns dict: a dictionary of `fee structures <https://github.com/ccxt/ccxt/wiki/Manual#fee-structure>` indexed by market symbols
|
@@ -6655,7 +6655,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
6655
6655
|
def fetch_deposit_withdraw_fees(self, codes: Optional[List[str]] = None, params={}):
|
6656
6656
|
"""
|
6657
6657
|
fetch deposit and withdraw fees
|
6658
|
-
see https://bybit-exchange.github.io/docs/v5/asset/coin-info
|
6658
|
+
:see: https://bybit-exchange.github.io/docs/v5/asset/coin-info
|
6659
6659
|
:param str[] codes: list of unified currency codes
|
6660
6660
|
:param dict [params]: extra parameters specific to the bybit api endpoint
|
6661
6661
|
:returns dict: a list of `fee structures <https://github.com/ccxt/ccxt/wiki/Manual#fee-structure>`
|
@@ -6700,7 +6700,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
6700
6700
|
def fetch_settlement_history(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
6701
6701
|
"""
|
6702
6702
|
fetches historical settlement records
|
6703
|
-
see https://bybit-exchange.github.io/docs/v5/market/delivery-price
|
6703
|
+
:see: https://bybit-exchange.github.io/docs/v5/market/delivery-price
|
6704
6704
|
:param str symbol: unified market symbol of the settlement history
|
6705
6705
|
:param int [since]: timestamp in ms
|
6706
6706
|
:param int [limit]: number of records
|
@@ -6751,7 +6751,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
6751
6751
|
def fetch_my_settlement_history(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
6752
6752
|
"""
|
6753
6753
|
fetches historical settlement records of the user
|
6754
|
-
see https://bybit-exchange.github.io/docs/v5/asset/delivery
|
6754
|
+
:see: https://bybit-exchange.github.io/docs/v5/asset/delivery
|
6755
6755
|
:param str symbol: unified market symbol of the settlement history
|
6756
6756
|
:param int [since]: timestamp in ms
|
6757
6757
|
:param int [limit]: number of records
|
@@ -6872,7 +6872,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
6872
6872
|
def fetch_volatility_history(self, code: str, params={}):
|
6873
6873
|
"""
|
6874
6874
|
fetch the historical volatility of an option market based on an underlying asset
|
6875
|
-
see https://bybit-exchange.github.io/docs/v5/market/iv
|
6875
|
+
:see: https://bybit-exchange.github.io/docs/v5/market/iv
|
6876
6876
|
:param str code: unified currency code
|
6877
6877
|
:param dict [params]: extra parameters specific to the bybit api endpoint
|
6878
6878
|
:param int [params.period]: the period in days to fetch the volatility for: 7,14,21,30,60,90,180,270
|
ccxt/cex.py
CHANGED
@@ -715,7 +715,7 @@ class cex(Exchange, ImplicitAPI):
|
|
715
715
|
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/coinbase.py
CHANGED
@@ -1892,7 +1892,7 @@ class coinbase(Exchange, ImplicitAPI):
|
|
1892
1892
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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>`
|