ccxt 4.4.30__py2.py3-none-any.whl → 4.4.32__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/ace.py +36 -12
- ccxt/alpaca.py +62 -22
- ccxt/ascendex.py +65 -30
- ccxt/async_support/__init__.py +1 -1
- ccxt/async_support/ace.py +36 -12
- ccxt/async_support/alpaca.py +62 -22
- ccxt/async_support/ascendex.py +65 -30
- ccxt/async_support/base/exchange.py +3 -3
- ccxt/async_support/base/ws/aiohttp_client.py +25 -3
- ccxt/async_support/bigone.py +71 -27
- ccxt/async_support/binance.py +555 -323
- ccxt/async_support/bingx.py +208 -108
- ccxt/async_support/bit2c.py +34 -12
- ccxt/async_support/bitbank.py +42 -14
- ccxt/async_support/bitbns.py +17 -9
- ccxt/async_support/bitfinex.py +68 -24
- ccxt/async_support/bitfinex2.py +116 -44
- ccxt/async_support/bitflyer.py +54 -18
- ccxt/async_support/bitget.py +277 -145
- ccxt/async_support/bithumb.py +39 -14
- ccxt/async_support/bitmart.py +145 -79
- ccxt/async_support/bitmex.py +90 -30
- ccxt/async_support/bitopro.py +66 -22
- ccxt/async_support/bitrue.py +109 -57
- ccxt/async_support/bitso.py +55 -19
- ccxt/async_support/bitstamp.py +84 -36
- ccxt/async_support/bitteam.py +51 -17
- ccxt/async_support/bitvavo.py +57 -22
- ccxt/async_support/bl3p.py +26 -10
- ccxt/async_support/blockchaincom.py +63 -21
- ccxt/async_support/blofin.py +95 -38
- ccxt/async_support/btcalpha.py +48 -16
- ccxt/async_support/btcbox.py +27 -9
- ccxt/async_support/btcmarkets.py +57 -19
- ccxt/async_support/btcturk.py +36 -12
- ccxt/async_support/bybit.py +251 -95
- ccxt/async_support/cex.py +65 -22
- ccxt/async_support/coinbase.py +138 -56
- ccxt/async_support/coinbaseexchange.py +76 -28
- ccxt/async_support/coinbaseinternational.py +75 -27
- ccxt/async_support/coincatch.py +191 -97
- ccxt/async_support/coincheck.py +33 -11
- ccxt/async_support/coinex.py +212 -101
- ccxt/async_support/coinlist.py +87 -30
- ccxt/async_support/coinmate.py +55 -24
- ccxt/async_support/coinmetro.py +52 -18
- ccxt/async_support/coinone.py +27 -10
- ccxt/async_support/coinsph.py +73 -27
- ccxt/async_support/coinspot.py +25 -9
- ccxt/async_support/cryptocom.py +103 -38
- ccxt/async_support/currencycom.py +70 -23
- ccxt/async_support/delta.py +90 -30
- ccxt/async_support/deribit.py +131 -50
- ccxt/async_support/digifinex.py +114 -51
- ccxt/async_support/exmo.py +104 -45
- ccxt/async_support/gate.py +313 -157
- ccxt/async_support/gemini.py +57 -20
- ccxt/async_support/hashkey.py +151 -66
- ccxt/async_support/hitbtc.py +157 -74
- ccxt/async_support/hollaex.py +76 -25
- ccxt/async_support/htx.py +297 -240
- ccxt/async_support/huobijp.py +1 -0
- ccxt/async_support/hyperliquid.py +94 -38
- ccxt/async_support/idex.py +73 -24
- ccxt/async_support/independentreserve.py +12 -5
- ccxt/async_support/indodax.py +54 -17
- ccxt/async_support/kraken.py +108 -36
- ccxt/async_support/krakenfutures.py +88 -34
- ccxt/async_support/kucoin.py +214 -110
- ccxt/async_support/kucoinfutures.py +209 -64
- ccxt/async_support/kuna.py +80 -39
- ccxt/async_support/latoken.py +70 -33
- ccxt/async_support/lbank.py +89 -38
- ccxt/async_support/luno.py +54 -19
- ccxt/async_support/lykke.py +54 -19
- ccxt/async_support/mercado.py +1 -0
- ccxt/async_support/mexc.py +226 -108
- ccxt/async_support/ndax.py +58 -19
- ccxt/async_support/novadax.py +67 -22
- ccxt/async_support/oceanex.py +58 -19
- ccxt/async_support/okcoin.py +81 -38
- ccxt/async_support/okx.py +270 -109
- ccxt/async_support/onetrading.py +3 -1
- ccxt/async_support/oxfun.py +95 -36
- ccxt/async_support/p2b.py +49 -23
- ccxt/async_support/paradex.py +75 -27
- ccxt/async_support/paymium.py +31 -11
- ccxt/async_support/phemex.py +108 -56
- ccxt/async_support/poloniex.py +80 -30
- ccxt/async_support/poloniexfutures.py +72 -30
- ccxt/async_support/probit.py +64 -22
- ccxt/async_support/timex.py +58 -19
- ccxt/async_support/tokocrypto.py +63 -22
- ccxt/async_support/tradeogre.py +7 -2
- ccxt/async_support/upbit.py +72 -25
- ccxt/async_support/vertex.py +74 -28
- ccxt/async_support/wavesexchange.py +32 -8
- ccxt/async_support/wazirx.py +51 -17
- ccxt/async_support/whitebit.py +105 -41
- ccxt/async_support/woo.py +162 -65
- ccxt/async_support/woofipro.py +119 -50
- ccxt/async_support/xt.py +150 -73
- ccxt/async_support/yobit.py +49 -16
- ccxt/async_support/zaif.py +30 -10
- ccxt/async_support/zonda.py +46 -16
- ccxt/base/exchange.py +47 -35
- ccxt/base/types.py +1 -0
- ccxt/bigone.py +71 -27
- ccxt/binance.py +555 -323
- ccxt/bingx.py +208 -108
- ccxt/bit2c.py +34 -12
- ccxt/bitbank.py +42 -14
- ccxt/bitbns.py +17 -9
- ccxt/bitfinex.py +68 -24
- ccxt/bitfinex2.py +116 -44
- ccxt/bitflyer.py +54 -18
- ccxt/bitget.py +277 -145
- ccxt/bithumb.py +39 -14
- ccxt/bitmart.py +145 -79
- ccxt/bitmex.py +90 -30
- ccxt/bitopro.py +66 -22
- ccxt/bitrue.py +109 -57
- ccxt/bitso.py +55 -19
- ccxt/bitstamp.py +84 -36
- ccxt/bitteam.py +51 -17
- ccxt/bitvavo.py +57 -22
- ccxt/bl3p.py +26 -10
- ccxt/blockchaincom.py +63 -21
- ccxt/blofin.py +95 -38
- ccxt/btcalpha.py +48 -16
- ccxt/btcbox.py +27 -9
- ccxt/btcmarkets.py +57 -19
- ccxt/btcturk.py +36 -12
- ccxt/bybit.py +251 -95
- ccxt/cex.py +65 -22
- ccxt/coinbase.py +138 -56
- ccxt/coinbaseexchange.py +76 -28
- ccxt/coinbaseinternational.py +75 -27
- ccxt/coincatch.py +191 -97
- ccxt/coincheck.py +33 -11
- ccxt/coinex.py +212 -101
- ccxt/coinlist.py +87 -30
- ccxt/coinmate.py +55 -24
- ccxt/coinmetro.py +52 -18
- ccxt/coinone.py +27 -10
- ccxt/coinsph.py +73 -27
- ccxt/coinspot.py +25 -9
- ccxt/cryptocom.py +103 -38
- ccxt/currencycom.py +70 -23
- ccxt/delta.py +90 -30
- ccxt/deribit.py +131 -50
- ccxt/digifinex.py +114 -51
- ccxt/exmo.py +104 -45
- ccxt/gate.py +313 -157
- ccxt/gemini.py +57 -20
- ccxt/hashkey.py +151 -66
- ccxt/hitbtc.py +157 -74
- ccxt/hollaex.py +76 -25
- ccxt/htx.py +297 -240
- ccxt/huobijp.py +1 -0
- ccxt/hyperliquid.py +94 -38
- ccxt/idex.py +73 -24
- ccxt/independentreserve.py +12 -5
- ccxt/indodax.py +54 -17
- ccxt/kraken.py +108 -36
- ccxt/krakenfutures.py +88 -34
- ccxt/kucoin.py +214 -110
- ccxt/kucoinfutures.py +209 -64
- ccxt/kuna.py +80 -39
- ccxt/latoken.py +70 -33
- ccxt/lbank.py +89 -38
- ccxt/luno.py +54 -19
- ccxt/lykke.py +54 -19
- ccxt/mercado.py +1 -0
- ccxt/mexc.py +226 -108
- ccxt/ndax.py +58 -19
- ccxt/novadax.py +67 -22
- ccxt/oceanex.py +58 -19
- ccxt/okcoin.py +81 -38
- ccxt/okx.py +270 -109
- ccxt/onetrading.py +3 -1
- ccxt/oxfun.py +95 -36
- ccxt/p2b.py +49 -23
- ccxt/paradex.py +75 -27
- ccxt/paymium.py +31 -11
- ccxt/phemex.py +108 -56
- ccxt/poloniex.py +80 -30
- ccxt/poloniexfutures.py +72 -30
- ccxt/pro/__init__.py +1 -1
- ccxt/pro/alpaca.py +15 -5
- ccxt/pro/ascendex.py +18 -6
- ccxt/pro/binance.py +204 -123
- ccxt/pro/bingx.py +44 -24
- ccxt/pro/bitfinex.py +13 -5
- ccxt/pro/bitget.py +76 -37
- ccxt/pro/bithumb.py +12 -4
- ccxt/pro/bitmart.py +44 -20
- ccxt/pro/bitmex.py +42 -14
- ccxt/pro/bitopro.py +15 -5
- ccxt/pro/bitrue.py +7 -3
- ccxt/pro/bitvavo.py +97 -62
- ccxt/pro/blockchaincom.py +18 -6
- ccxt/pro/blofin.py +36 -12
- ccxt/pro/bybit.py +100 -42
- ccxt/pro/cex.py +48 -16
- ccxt/pro/coinbase.py +32 -12
- ccxt/pro/coinbaseexchange.py +1 -1
- ccxt/pro/coinbaseinternational.py +34 -14
- ccxt/pro/coincatch.py +54 -19
- ccxt/pro/coincheck.py +6 -2
- ccxt/pro/coinex.py +40 -20
- ccxt/pro/coinone.py +9 -3
- ccxt/pro/cryptocom.py +71 -27
- ccxt/pro/deribit.py +36 -12
- ccxt/pro/exmo.py +10 -4
- ccxt/pro/gate.py +65 -31
- ccxt/pro/gemini.py +21 -7
- ccxt/pro/hashkey.py +27 -9
- ccxt/pro/hitbtc.py +61 -37
- ccxt/pro/hollaex.py +15 -5
- ccxt/pro/htx.py +39 -21
- ccxt/pro/hyperliquid.py +41 -14
- ccxt/pro/kraken.py +49 -17
- ccxt/pro/krakenfutures.py +47 -24
- ccxt/pro/kucoin.py +60 -31
- ccxt/pro/kucoinfutures.py +41 -19
- ccxt/pro/lbank.py +27 -9
- ccxt/pro/luno.py +3 -1
- ccxt/pro/mexc.py +36 -19
- ccxt/pro/ndax.py +12 -4
- ccxt/pro/okcoin.py +18 -6
- ccxt/pro/okx.py +76 -28
- ccxt/pro/onetrading.py +21 -7
- ccxt/pro/oxfun.py +54 -20
- ccxt/pro/p2b.py +23 -11
- ccxt/pro/paradex.py +12 -4
- ccxt/pro/phemex.py +31 -19
- ccxt/pro/poloniex.py +50 -22
- ccxt/pro/poloniexfutures.py +17 -7
- ccxt/pro/probit.py +18 -6
- ccxt/pro/upbit.py +25 -9
- ccxt/pro/vertex.py +20 -6
- ccxt/pro/wazirx.py +21 -7
- ccxt/pro/whitebit.py +25 -9
- ccxt/pro/woo.py +32 -12
- ccxt/pro/woofipro.py +35 -13
- ccxt/pro/xt.py +46 -26
- ccxt/probit.py +64 -22
- ccxt/timex.py +58 -19
- ccxt/tokocrypto.py +63 -22
- ccxt/tradeogre.py +7 -2
- ccxt/upbit.py +72 -25
- ccxt/vertex.py +74 -28
- ccxt/wavesexchange.py +32 -8
- ccxt/wazirx.py +51 -17
- ccxt/whitebit.py +105 -41
- ccxt/woo.py +162 -65
- ccxt/woofipro.py +119 -50
- ccxt/xt.py +150 -73
- ccxt/yobit.py +49 -16
- ccxt/zaif.py +30 -10
- ccxt/zonda.py +46 -16
- {ccxt-4.4.30.dist-info → ccxt-4.4.32.dist-info}/METADATA +11 -5
- {ccxt-4.4.30.dist-info → ccxt-4.4.32.dist-info}/RECORD +268 -268
- {ccxt-4.4.30.dist-info → ccxt-4.4.32.dist-info}/LICENSE.txt +0 -0
- {ccxt-4.4.30.dist-info → ccxt-4.4.32.dist-info}/WHEEL +0 -0
- {ccxt-4.4.30.dist-info → ccxt-4.4.32.dist-info}/top_level.txt +0 -0
ccxt/blofin.py
CHANGED
@@ -361,7 +361,9 @@ class blofin(Exchange, ImplicitAPI):
|
|
361
361
|
def fetch_markets(self, params={}) -> List[Market]:
|
362
362
|
"""
|
363
363
|
retrieves data on all markets for blofin
|
364
|
-
|
364
|
+
|
365
|
+
https://blofin.com/docs#get-instruments
|
366
|
+
|
365
367
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
366
368
|
:returns dict[]: an array of objects representing market data
|
367
369
|
"""
|
@@ -451,7 +453,9 @@ class blofin(Exchange, ImplicitAPI):
|
|
451
453
|
def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
452
454
|
"""
|
453
455
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
454
|
-
|
456
|
+
|
457
|
+
https://blofin.com/docs#get-order-book
|
458
|
+
|
455
459
|
:param str symbol: unified symbol of the market to fetch the order book for
|
456
460
|
:param int [limit]: the maximum amount of order book entries to return
|
457
461
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -551,7 +555,9 @@ class blofin(Exchange, ImplicitAPI):
|
|
551
555
|
def fetch_ticker(self, symbol: str, params={}) -> Ticker:
|
552
556
|
"""
|
553
557
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
554
|
-
|
558
|
+
|
559
|
+
https://blofin.com/docs#get-tickers
|
560
|
+
|
555
561
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
556
562
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
557
563
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -569,8 +575,10 @@ class blofin(Exchange, ImplicitAPI):
|
|
569
575
|
def fetch_mark_price(self, symbol: str, params={}) -> Ticker:
|
570
576
|
"""
|
571
577
|
fetches mark price for the market
|
572
|
-
|
573
|
-
|
578
|
+
|
579
|
+
https://docs.blofin.com/index.html#get-mark-price
|
580
|
+
|
581
|
+
:param str symbol: unified market symbol
|
574
582
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
575
583
|
:param str [params.subType]: "linear" or "inverse"
|
576
584
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -588,7 +596,9 @@ class blofin(Exchange, ImplicitAPI):
|
|
588
596
|
def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
589
597
|
"""
|
590
598
|
fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
591
|
-
|
599
|
+
|
600
|
+
https://blofin.com/docs#get-tickers
|
601
|
+
|
592
602
|
:param str[] [symbols]: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
593
603
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
594
604
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -662,7 +672,9 @@ class blofin(Exchange, ImplicitAPI):
|
|
662
672
|
def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
663
673
|
"""
|
664
674
|
get the list of most recent trades for a particular symbol
|
665
|
-
|
675
|
+
|
676
|
+
https://blofin.com/docs#get-trades
|
677
|
+
|
666
678
|
:param str symbol: unified symbol of the market to fetch trades for
|
667
679
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
668
680
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -715,7 +727,9 @@ class blofin(Exchange, ImplicitAPI):
|
|
715
727
|
def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
716
728
|
"""
|
717
729
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
718
|
-
|
730
|
+
|
731
|
+
https://blofin.com/docs#get-candlesticks
|
732
|
+
|
719
733
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
720
734
|
:param str timeframe: the length of time each candle represents
|
721
735
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -750,7 +764,9 @@ class blofin(Exchange, ImplicitAPI):
|
|
750
764
|
def fetch_funding_rate_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
751
765
|
"""
|
752
766
|
fetches historical funding rate prices
|
753
|
-
|
767
|
+
|
768
|
+
https://blofin.com/docs#get-funding-rate-history
|
769
|
+
|
754
770
|
:param str symbol: unified symbol of the market to fetch the funding rate history for
|
755
771
|
:param int [since]: timestamp in ms of the earliest funding rate to fetch
|
756
772
|
:param int [limit]: the maximum amount of `funding rate structures <https://docs.ccxt.com/#/?id=funding-rate-history-structure>` to fetch
|
@@ -825,7 +841,9 @@ class blofin(Exchange, ImplicitAPI):
|
|
825
841
|
def fetch_funding_rate(self, symbol: str, params={}) -> FundingRate:
|
826
842
|
"""
|
827
843
|
fetch the current funding rate
|
828
|
-
|
844
|
+
|
845
|
+
https://blofin.com/docs#get-funding-rate
|
846
|
+
|
829
847
|
:param str symbol: unified market symbol
|
830
848
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
831
849
|
:returns dict: a `funding rate structure <https://docs.ccxt.com/#/?id=funding-rate-structure>`
|
@@ -959,8 +977,10 @@ class blofin(Exchange, ImplicitAPI):
|
|
959
977
|
def fetch_balance(self, params={}) -> Balances:
|
960
978
|
"""
|
961
979
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
962
|
-
|
963
|
-
|
980
|
+
|
981
|
+
https://blofin.com/docs#get-balance
|
982
|
+
https://blofin.com/docs#get-futures-account-balance
|
983
|
+
|
964
984
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
965
985
|
:param str [params.accountType]: the type of account to fetch the balance for, either 'funding' or 'futures' or 'copy_trading' or 'earn'
|
966
986
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
@@ -1154,8 +1174,10 @@ class blofin(Exchange, ImplicitAPI):
|
|
1154
1174
|
def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}) -> Order:
|
1155
1175
|
"""
|
1156
1176
|
create a trade order
|
1157
|
-
|
1158
|
-
|
1177
|
+
|
1178
|
+
https://blofin.com/docs#place-order
|
1179
|
+
https://blofin.com/docs#place-tpsl-order
|
1180
|
+
|
1159
1181
|
:param str symbol: unified symbol of the market to create an order in
|
1160
1182
|
:param str type: 'market' or 'limit' or 'post_only' or 'ioc' or 'fok'
|
1161
1183
|
:param str side: 'buy' or 'sell'
|
@@ -1167,7 +1189,7 @@ class blofin(Exchange, ImplicitAPI):
|
|
1167
1189
|
:param str [params.marginMode]: 'cross' or 'isolated', default is 'cross'
|
1168
1190
|
:param float [params.stopLossPrice]: stop loss trigger price(will use privatePostTradeOrderTpsl)
|
1169
1191
|
:param float [params.takeProfitPrice]: take profit trigger price(will use privatePostTradeOrderTpsl)
|
1170
|
-
:param str [
|
1192
|
+
:param str [params.positionSide]: *stopLossPrice/takeProfitPrice orders only* 'long' or 'short' or 'net' default is 'net'
|
1171
1193
|
:param str [params.clientOrderId]: a unique id for the order
|
1172
1194
|
:param dict [params.takeProfit]: *takeProfit object in params* containing the triggerPrice at which the attached take profit order will be triggered
|
1173
1195
|
:param float [params.takeProfit.triggerPrice]: take profit trigger price
|
@@ -1235,8 +1257,10 @@ class blofin(Exchange, ImplicitAPI):
|
|
1235
1257
|
def cancel_order(self, id: str, symbol: Str = None, params={}):
|
1236
1258
|
"""
|
1237
1259
|
cancels an open order
|
1238
|
-
|
1239
|
-
|
1260
|
+
|
1261
|
+
https://blofin.com/docs#cancel-order
|
1262
|
+
https://blofin.com/docs#cancel-tpsl-order
|
1263
|
+
|
1240
1264
|
:param str id: order id
|
1241
1265
|
:param str symbol: unified symbol of the market the order was made in
|
1242
1266
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1272,8 +1296,11 @@ class blofin(Exchange, ImplicitAPI):
|
|
1272
1296
|
def create_orders(self, orders: List[OrderRequest], params={}) -> List[Order]:
|
1273
1297
|
"""
|
1274
1298
|
create a list of trade orders
|
1275
|
-
|
1299
|
+
|
1300
|
+
https://blofin.com/docs#place-multiple-orders
|
1301
|
+
|
1276
1302
|
:param Array orders: list of orders to create, each object should contain the parameters required by createOrder, namely symbol, type, side, amount, price and params
|
1303
|
+
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1277
1304
|
:returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
1278
1305
|
"""
|
1279
1306
|
self.load_markets()
|
@@ -1296,8 +1323,10 @@ class blofin(Exchange, ImplicitAPI):
|
|
1296
1323
|
def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1297
1324
|
"""
|
1298
1325
|
Fetch orders that are still open
|
1299
|
-
|
1300
|
-
|
1326
|
+
|
1327
|
+
https://blofin.com/docs#get-active-orders
|
1328
|
+
https://blofin.com/docs#get-active-tpsl-orders
|
1329
|
+
|
1301
1330
|
:param str symbol: unified market symbol
|
1302
1331
|
:param int [since]: the earliest time in ms to fetch open orders for
|
1303
1332
|
:param int [limit]: the maximum number of open orders structures to retrieve
|
@@ -1334,7 +1363,9 @@ class blofin(Exchange, ImplicitAPI):
|
|
1334
1363
|
def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
1335
1364
|
"""
|
1336
1365
|
fetch all trades made by the user
|
1337
|
-
|
1366
|
+
|
1367
|
+
https://blofin.com/docs#get-trade-history
|
1368
|
+
|
1338
1369
|
:param str symbol: unified market symbol
|
1339
1370
|
:param int [since]: the earliest time in ms to fetch trades for
|
1340
1371
|
:param int [limit]: the maximum number of trades structures to retrieve
|
@@ -1364,7 +1395,9 @@ class blofin(Exchange, ImplicitAPI):
|
|
1364
1395
|
def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
1365
1396
|
"""
|
1366
1397
|
fetch all deposits made to an account
|
1367
|
-
|
1398
|
+
|
1399
|
+
https://blofin.com/docs#get-deposite-history
|
1400
|
+
|
1368
1401
|
:param str code: unified currency code
|
1369
1402
|
:param int [since]: the earliest time in ms to fetch deposits for
|
1370
1403
|
:param int [limit]: the maximum number of deposits structures to retrieve
|
@@ -1396,7 +1429,9 @@ class blofin(Exchange, ImplicitAPI):
|
|
1396
1429
|
def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
1397
1430
|
"""
|
1398
1431
|
fetch all withdrawals made from an account
|
1399
|
-
|
1432
|
+
|
1433
|
+
https://blofin.com/docs#get-withdraw-history
|
1434
|
+
|
1400
1435
|
:param str code: unified currency code
|
1401
1436
|
:param int [since]: the earliest time in ms to fetch withdrawals for
|
1402
1437
|
:param int [limit]: the maximum number of withdrawals structures to retrieve
|
@@ -1428,7 +1463,9 @@ class blofin(Exchange, ImplicitAPI):
|
|
1428
1463
|
def fetch_ledger(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[LedgerEntry]:
|
1429
1464
|
"""
|
1430
1465
|
fetch the history of changes, actions done by the user or operations that altered the balance of the user
|
1431
|
-
|
1466
|
+
|
1467
|
+
https://blofin.com/docs#get-funds-transfer-history
|
1468
|
+
|
1432
1469
|
:param str [code]: unified currency code, default is None
|
1433
1470
|
:param int [since]: timestamp in ms of the earliest ledger entry, default is None
|
1434
1471
|
:param int [limit]: max number of ledger entries to return, default is None
|
@@ -1591,7 +1628,7 @@ class blofin(Exchange, ImplicitAPI):
|
|
1591
1628
|
|
1592
1629
|
def parse_ids(self, ids):
|
1593
1630
|
"""
|
1594
|
-
|
1631
|
+
@ignore
|
1595
1632
|
:param string[]|str ids: order ids
|
1596
1633
|
:returns str[]: list of order ids
|
1597
1634
|
"""
|
@@ -1603,7 +1640,9 @@ class blofin(Exchange, ImplicitAPI):
|
|
1603
1640
|
def cancel_orders(self, ids, symbol: Str = None, params={}):
|
1604
1641
|
"""
|
1605
1642
|
cancel multiple orders
|
1606
|
-
|
1643
|
+
|
1644
|
+
https://blofin.com/docs#cancel-multiple-orders
|
1645
|
+
|
1607
1646
|
:param str[] ids: order ids
|
1608
1647
|
:param str symbol: unified market symbol
|
1609
1648
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1660,7 +1699,9 @@ class blofin(Exchange, ImplicitAPI):
|
|
1660
1699
|
def transfer(self, code: str, amount: float, fromAccount: str, toAccount: str, params={}) -> TransferEntry:
|
1661
1700
|
"""
|
1662
1701
|
transfer currency internally between wallets on the same account
|
1663
|
-
|
1702
|
+
|
1703
|
+
https://blofin.com/docs#funds-transfer
|
1704
|
+
|
1664
1705
|
:param str code: unified currency code
|
1665
1706
|
:param float amount: amount to transfer
|
1666
1707
|
:param str fromAccount: account to transfer from(funding, swap, copy_trading, earn)
|
@@ -1700,7 +1741,9 @@ class blofin(Exchange, ImplicitAPI):
|
|
1700
1741
|
def fetch_position(self, symbol: str, params={}) -> Position:
|
1701
1742
|
"""
|
1702
1743
|
fetch data on a single open contract trade position
|
1703
|
-
|
1744
|
+
|
1745
|
+
https://blofin.com/docs#get-positions
|
1746
|
+
|
1704
1747
|
:param str symbol: unified market symbol of the market the position is held in, default is None
|
1705
1748
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1706
1749
|
:param str [params.instType]: MARGIN, SWAP, FUTURES, OPTION
|
@@ -1721,7 +1764,9 @@ class blofin(Exchange, ImplicitAPI):
|
|
1721
1764
|
def fetch_positions(self, symbols: Strings = None, params={}) -> List[Position]:
|
1722
1765
|
"""
|
1723
1766
|
fetch data on a single open contract trade position
|
1724
|
-
|
1767
|
+
|
1768
|
+
https://blofin.com/docs#get-positions
|
1769
|
+
|
1725
1770
|
:param str[] [symbols]: list of unified market symbols
|
1726
1771
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1727
1772
|
:param str [params.instType]: MARGIN, SWAP, FUTURES, OPTION
|
@@ -1844,7 +1889,9 @@ class blofin(Exchange, ImplicitAPI):
|
|
1844
1889
|
def fetch_leverages(self, symbols: Strings = None, params={}) -> Leverages:
|
1845
1890
|
"""
|
1846
1891
|
fetch the set leverage for all contract markets
|
1847
|
-
|
1892
|
+
|
1893
|
+
https://docs.blofin.com/index.html#get-multiple-leverage
|
1894
|
+
|
1848
1895
|
:param str[] symbols: a list of unified market symbols, required on blofin
|
1849
1896
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1850
1897
|
:param str [params.marginMode]: 'cross' or 'isolated'
|
@@ -1892,7 +1939,9 @@ class blofin(Exchange, ImplicitAPI):
|
|
1892
1939
|
def fetch_leverage(self, symbol: str, params={}) -> Leverage:
|
1893
1940
|
"""
|
1894
1941
|
fetch the set leverage for a market
|
1895
|
-
|
1942
|
+
|
1943
|
+
https://docs.blofin.com/index.html#get-leverage
|
1944
|
+
|
1896
1945
|
:param str symbol: unified market symbol
|
1897
1946
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1898
1947
|
:param str [params.marginMode]: 'cross' or 'isolated'
|
@@ -1939,7 +1988,9 @@ class blofin(Exchange, ImplicitAPI):
|
|
1939
1988
|
def set_leverage(self, leverage: Int, symbol: Str = None, params={}):
|
1940
1989
|
"""
|
1941
1990
|
set the level of leverage for a market
|
1942
|
-
|
1991
|
+
|
1992
|
+
https://blofin.com/docs#set-leverage
|
1993
|
+
|
1943
1994
|
:param int leverage: the rate of leverage
|
1944
1995
|
:param str symbol: unified market symbol
|
1945
1996
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1969,15 +2020,17 @@ class blofin(Exchange, ImplicitAPI):
|
|
1969
2020
|
def close_position(self, symbol: str, side: OrderSide = None, params={}) -> Order:
|
1970
2021
|
"""
|
1971
2022
|
closes open positions for a market
|
1972
|
-
|
2023
|
+
|
2024
|
+
https://blofin.com/docs#close-positions
|
2025
|
+
|
1973
2026
|
:param str symbol: Unified CCXT market symbol
|
1974
2027
|
:param str [side]: 'buy' or 'sell', leave in net mode
|
1975
2028
|
:param dict [params]: extra parameters specific to the blofin api endpoint
|
1976
2029
|
:param str [params.clientOrderId]: a unique identifier for the order
|
1977
2030
|
:param str [params.marginMode]: 'cross' or 'isolated', default is 'cross
|
1978
2031
|
:param str [params.code]: *required in the case of closing cross MARGIN position for Single-currency margin* margin currency
|
1979
|
-
|
1980
|
-
|
2032
|
+
|
2033
|
+
EXCHANGE SPECIFIC PARAMETERS
|
1981
2034
|
:param boolean [params.autoCxl]: whether any pending orders for closing out needs to be automatically canceled when close position via a market order. False or True, the default is False
|
1982
2035
|
:param str [params.tag]: order tag a combination of case-sensitive alphanumerics, all numbers, or all letters of up to 16 characters
|
1983
2036
|
:returns dict[]: `A list of position structures <https://docs.ccxt.com/#/?id=position-structure>`
|
@@ -1999,8 +2052,10 @@ class blofin(Exchange, ImplicitAPI):
|
|
1999
2052
|
def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
2000
2053
|
"""
|
2001
2054
|
fetches information on multiple closed orders made by the user
|
2002
|
-
|
2003
|
-
|
2055
|
+
|
2056
|
+
https://blofin.com/docs#get-order-history
|
2057
|
+
https://blofin.com/docs#get-tpsl-order-history
|
2058
|
+
|
2004
2059
|
:param str symbol: unified market symbol of the market orders were made in
|
2005
2060
|
:param int [since]: the earliest time in ms to fetch orders for
|
2006
2061
|
:param int [limit]: the maximum number of orde structures to retrieve
|
@@ -2039,7 +2094,9 @@ class blofin(Exchange, ImplicitAPI):
|
|
2039
2094
|
def fetch_margin_mode(self, symbol: str, params={}) -> MarginMode:
|
2040
2095
|
"""
|
2041
2096
|
fetches the margin mode of a trading pair
|
2042
|
-
|
2097
|
+
|
2098
|
+
https://docs.blofin.com/index.html#get-margin-mode
|
2099
|
+
|
2043
2100
|
:param str symbol: unified symbol of the market to fetch the margin mode for
|
2044
2101
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2045
2102
|
:returns dict: a `margin mode structure <https://docs.ccxt.com/#/?id=margin-mode-structure>`
|
ccxt/btcalpha.py
CHANGED
@@ -162,7 +162,9 @@ class btcalpha(Exchange, ImplicitAPI):
|
|
162
162
|
def fetch_markets(self, params={}) -> List[Market]:
|
163
163
|
"""
|
164
164
|
retrieves data on all markets for btcalpha
|
165
|
-
|
165
|
+
|
166
|
+
https://btc-alpha.github.io/api-docs/#list-all-currencies
|
167
|
+
|
166
168
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
167
169
|
:returns dict[]: an array of objects representing market data
|
168
170
|
"""
|
@@ -245,7 +247,9 @@ class btcalpha(Exchange, ImplicitAPI):
|
|
245
247
|
|
246
248
|
def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
247
249
|
"""
|
248
|
-
|
250
|
+
|
251
|
+
https://btc-alpha.github.io/api-docs/#tickers
|
252
|
+
|
249
253
|
fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
250
254
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
251
255
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -273,7 +277,9 @@ class btcalpha(Exchange, ImplicitAPI):
|
|
273
277
|
|
274
278
|
def fetch_ticker(self, symbol: str, params={}) -> Ticker:
|
275
279
|
"""
|
276
|
-
|
280
|
+
|
281
|
+
https://btc-alpha.github.io/api-docs/#tickers
|
282
|
+
|
277
283
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
278
284
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
279
285
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -344,7 +350,9 @@ class btcalpha(Exchange, ImplicitAPI):
|
|
344
350
|
|
345
351
|
def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
346
352
|
"""
|
347
|
-
|
353
|
+
|
354
|
+
https://btc-alpha.github.io/api-docs/#get-orderbook
|
355
|
+
|
348
356
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
349
357
|
:param str symbol: unified symbol of the market to fetch the order book for
|
350
358
|
:param int [limit]: the maximum amount of order book entries to return
|
@@ -422,7 +430,9 @@ class btcalpha(Exchange, ImplicitAPI):
|
|
422
430
|
def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
423
431
|
"""
|
424
432
|
get the list of most recent trades for a particular symbol
|
425
|
-
|
433
|
+
|
434
|
+
https://btc-alpha.github.io/api-docs/#list-all-exchanges
|
435
|
+
|
426
436
|
:param str symbol: unified symbol of the market to fetch trades for
|
427
437
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
428
438
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -443,7 +453,9 @@ class btcalpha(Exchange, ImplicitAPI):
|
|
443
453
|
def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
444
454
|
"""
|
445
455
|
fetch all deposits made to an account
|
446
|
-
|
456
|
+
|
457
|
+
https://btc-alpha.github.io/api-docs/#list-own-deposits
|
458
|
+
|
447
459
|
:param str code: unified currency code
|
448
460
|
:param int [since]: the earliest time in ms to fetch deposits for
|
449
461
|
:param int [limit]: the maximum number of deposits structures to retrieve
|
@@ -470,7 +482,9 @@ class btcalpha(Exchange, ImplicitAPI):
|
|
470
482
|
def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
471
483
|
"""
|
472
484
|
fetch all withdrawals made from an account
|
473
|
-
|
485
|
+
|
486
|
+
https://btc-alpha.github.io/api-docs/#list-own-made-withdraws
|
487
|
+
|
474
488
|
:param str code: unified currency code
|
475
489
|
:param int [since]: the earliest time in ms to fetch withdrawals for
|
476
490
|
:param int [limit]: the maximum number of withdrawals structures to retrieve
|
@@ -575,7 +589,9 @@ class btcalpha(Exchange, ImplicitAPI):
|
|
575
589
|
def fetch_ohlcv(self, symbol: str, timeframe='5m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
576
590
|
"""
|
577
591
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
578
|
-
|
592
|
+
|
593
|
+
https://btc-alpha.github.io/api-docs/#charts
|
594
|
+
|
579
595
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
580
596
|
:param str timeframe: the length of time each candle represents
|
581
597
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -618,7 +634,9 @@ class btcalpha(Exchange, ImplicitAPI):
|
|
618
634
|
def fetch_balance(self, params={}) -> Balances:
|
619
635
|
"""
|
620
636
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
621
|
-
|
637
|
+
|
638
|
+
https://btc-alpha.github.io/api-docs/#list-own-wallets
|
639
|
+
|
622
640
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
623
641
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
624
642
|
"""
|
@@ -707,7 +725,9 @@ class btcalpha(Exchange, ImplicitAPI):
|
|
707
725
|
|
708
726
|
def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
709
727
|
"""
|
710
|
-
|
728
|
+
|
729
|
+
https://btc-alpha.github.io/api-docs/#create-order
|
730
|
+
|
711
731
|
create a trade order
|
712
732
|
:param str symbol: unified symbol of the market to create an order in
|
713
733
|
:param str type: 'limit'
|
@@ -738,7 +758,9 @@ class btcalpha(Exchange, ImplicitAPI):
|
|
738
758
|
|
739
759
|
def cancel_order(self, id: str, symbol: Str = None, params={}):
|
740
760
|
"""
|
741
|
-
|
761
|
+
|
762
|
+
https://btc-alpha.github.io/api-docs/#cancel-order
|
763
|
+
|
742
764
|
cancels an open order
|
743
765
|
:param str id: order id
|
744
766
|
:param str symbol: unified symbol of the market the order was made in
|
@@ -758,7 +780,9 @@ class btcalpha(Exchange, ImplicitAPI):
|
|
758
780
|
|
759
781
|
def fetch_order(self, id: str, symbol: Str = None, params={}):
|
760
782
|
"""
|
761
|
-
|
783
|
+
|
784
|
+
https://btc-alpha.github.io/api-docs/#retrieve-single-order
|
785
|
+
|
762
786
|
fetches information on an order made by the user
|
763
787
|
:param str id: the order id
|
764
788
|
:param str symbol: not used by btcalpha fetchOrder
|
@@ -774,7 +798,9 @@ class btcalpha(Exchange, ImplicitAPI):
|
|
774
798
|
|
775
799
|
def fetch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
776
800
|
"""
|
777
|
-
|
801
|
+
|
802
|
+
https://btc-alpha.github.io/api-docs/#list-own-orders
|
803
|
+
|
778
804
|
fetches information on multiple orders made by the user
|
779
805
|
:param str symbol: unified market symbol of the market orders were made in
|
780
806
|
:param int [since]: the earliest time in ms to fetch orders for
|
@@ -796,7 +822,9 @@ class btcalpha(Exchange, ImplicitAPI):
|
|
796
822
|
def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
797
823
|
"""
|
798
824
|
fetch all unfilled currently open orders
|
799
|
-
|
825
|
+
|
826
|
+
https://btc-alpha.github.io/api-docs/#list-own-orders
|
827
|
+
|
800
828
|
:param str symbol: unified market symbol
|
801
829
|
:param int [since]: the earliest time in ms to fetch open orders for
|
802
830
|
:param int [limit]: the maximum number of open orders structures to retrieve
|
@@ -811,7 +839,9 @@ class btcalpha(Exchange, ImplicitAPI):
|
|
811
839
|
def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
812
840
|
"""
|
813
841
|
fetches information on multiple closed orders made by the user
|
814
|
-
|
842
|
+
|
843
|
+
https://btc-alpha.github.io/api-docs/#list-own-orders
|
844
|
+
|
815
845
|
:param str symbol: unified market symbol of the market orders were made in
|
816
846
|
:param int [since]: the earliest time in ms to fetch orders for
|
817
847
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -826,7 +856,9 @@ class btcalpha(Exchange, ImplicitAPI):
|
|
826
856
|
def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
827
857
|
"""
|
828
858
|
fetch all trades made by the user
|
829
|
-
|
859
|
+
|
860
|
+
https://btc-alpha.github.io/api-docs/#list-own-exchanges
|
861
|
+
|
830
862
|
:param str symbol: unified market symbol
|
831
863
|
:param int [since]: the earliest time in ms to fetch trades for
|
832
864
|
:param int [limit]: the maximum number of trades structures to retrieve
|
ccxt/btcbox.py
CHANGED
@@ -281,7 +281,9 @@ class btcbox(Exchange, ImplicitAPI):
|
|
281
281
|
def fetch_balance(self, params={}) -> Balances:
|
282
282
|
"""
|
283
283
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
284
|
-
|
284
|
+
|
285
|
+
https://blog.btcbox.jp/en/archives/8762#toc13
|
286
|
+
|
285
287
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
286
288
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
287
289
|
"""
|
@@ -292,7 +294,9 @@ class btcbox(Exchange, ImplicitAPI):
|
|
292
294
|
def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
293
295
|
"""
|
294
296
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
295
|
-
|
297
|
+
|
298
|
+
https://blog.btcbox.jp/en/archives/8762#toc6
|
299
|
+
|
296
300
|
:param str symbol: unified symbol of the market to fetch the order book for
|
297
301
|
:param int [limit]: the maximum amount of order book entries to return
|
298
302
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -336,7 +340,9 @@ class btcbox(Exchange, ImplicitAPI):
|
|
336
340
|
def fetch_ticker(self, symbol: str, params={}) -> Ticker:
|
337
341
|
"""
|
338
342
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
339
|
-
|
343
|
+
|
344
|
+
https://blog.btcbox.jp/en/archives/8762#toc5
|
345
|
+
|
340
346
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
341
347
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
342
348
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -399,7 +405,9 @@ class btcbox(Exchange, ImplicitAPI):
|
|
399
405
|
def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
400
406
|
"""
|
401
407
|
get the list of most recent trades for a particular symbol
|
402
|
-
|
408
|
+
|
409
|
+
https://blog.btcbox.jp/en/archives/8762#toc7
|
410
|
+
|
403
411
|
:param str symbol: unified symbol of the market to fetch trades for
|
404
412
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
405
413
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -429,7 +437,9 @@ class btcbox(Exchange, ImplicitAPI):
|
|
429
437
|
def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
430
438
|
"""
|
431
439
|
create a trade order
|
432
|
-
|
440
|
+
|
441
|
+
https://blog.btcbox.jp/en/archives/8762#toc18
|
442
|
+
|
433
443
|
:param str symbol: unified symbol of the market to create an order in
|
434
444
|
:param str type: 'market' or 'limit'
|
435
445
|
:param str side: 'buy' or 'sell'
|
@@ -458,7 +468,9 @@ class btcbox(Exchange, ImplicitAPI):
|
|
458
468
|
def cancel_order(self, id: str, symbol: Str = None, params={}):
|
459
469
|
"""
|
460
470
|
cancels an open order
|
461
|
-
|
471
|
+
|
472
|
+
https://blog.btcbox.jp/en/archives/8762#toc17
|
473
|
+
|
462
474
|
:param str id: order id
|
463
475
|
:param str symbol: unified symbol of the market the order was made in
|
464
476
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -548,7 +560,9 @@ class btcbox(Exchange, ImplicitAPI):
|
|
548
560
|
def fetch_order(self, id: str, symbol: Str = None, params={}):
|
549
561
|
"""
|
550
562
|
fetches information on an order made by the user
|
551
|
-
|
563
|
+
|
564
|
+
https://blog.btcbox.jp/en/archives/8762#toc16
|
565
|
+
|
552
566
|
:param str id: the order id
|
553
567
|
:param str symbol: unified symbol of the market the order was made in
|
554
568
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -612,7 +626,9 @@ class btcbox(Exchange, ImplicitAPI):
|
|
612
626
|
def fetch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
613
627
|
"""
|
614
628
|
fetches information on multiple orders made by the user
|
615
|
-
|
629
|
+
|
630
|
+
https://blog.btcbox.jp/en/archives/8762#toc15
|
631
|
+
|
616
632
|
:param str symbol: unified market symbol of the market orders were made in
|
617
633
|
:param int [since]: the earliest time in ms to fetch orders for
|
618
634
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -624,7 +640,9 @@ class btcbox(Exchange, ImplicitAPI):
|
|
624
640
|
def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
625
641
|
"""
|
626
642
|
fetch all unfilled currently open orders
|
627
|
-
|
643
|
+
|
644
|
+
https://blog.btcbox.jp/en/archives/8762#toc15
|
645
|
+
|
628
646
|
:param str symbol: unified market symbol
|
629
647
|
:param int [since]: the earliest time in ms to fetch open orders for
|
630
648
|
:param int [limit]: the maximum number of open orders structures to retrieve
|