ccxt 4.4.30__py2.py3-none-any.whl → 4.4.31__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/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 -19
- 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 +298 -155
- ccxt/async_support/gemini.py +57 -20
- ccxt/async_support/hashkey.py +151 -66
- ccxt/async_support/hitbtc.py +156 -73
- 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 +53 -16
- ccxt/async_support/kraken.py +107 -35
- ccxt/async_support/krakenfutures.py +88 -34
- ccxt/async_support/kucoin.py +211 -109
- ccxt/async_support/kucoinfutures.py +119 -42
- 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 +91 -41
- 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 +29 -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 +118 -49
- 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 +34 -34
- 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 -19
- 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 +298 -155
- ccxt/gemini.py +57 -20
- ccxt/hashkey.py +151 -66
- ccxt/hitbtc.py +156 -73
- 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 +53 -16
- ccxt/kraken.py +107 -35
- ccxt/krakenfutures.py +88 -34
- ccxt/kucoin.py +211 -109
- ccxt/kucoinfutures.py +119 -42
- 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 +91 -41
- 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 +200 -119
- ccxt/pro/bingx.py +44 -24
- ccxt/pro/bitfinex.py +13 -5
- ccxt/pro/bitget.py +75 -36
- 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 +51 -17
- 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 +70 -26
- ccxt/pro/deribit.py +36 -12
- ccxt/pro/exmo.py +10 -4
- ccxt/pro/gate.py +64 -30
- ccxt/pro/gemini.py +21 -7
- ccxt/pro/hashkey.py +26 -8
- 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 +35 -17
- 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 +29 -8
- ccxt/wazirx.py +51 -17
- ccxt/whitebit.py +105 -41
- ccxt/woo.py +162 -65
- ccxt/woofipro.py +118 -49
- 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.31.dist-info}/METADATA +5 -5
- {ccxt-4.4.30.dist-info → ccxt-4.4.31.dist-info}/RECORD +267 -267
- {ccxt-4.4.30.dist-info → ccxt-4.4.31.dist-info}/LICENSE.txt +0 -0
- {ccxt-4.4.30.dist-info → ccxt-4.4.31.dist-info}/WHEEL +0 -0
- {ccxt-4.4.30.dist-info → ccxt-4.4.31.dist-info}/top_level.txt +0 -0
ccxt/btcmarkets.py
CHANGED
@@ -205,7 +205,9 @@ class btcmarkets(Exchange, ImplicitAPI):
|
|
205
205
|
def fetch_deposits_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
206
206
|
"""
|
207
207
|
fetch history of deposits and withdrawals
|
208
|
-
|
208
|
+
|
209
|
+
https://docs.btcmarkets.net/v3/#tag/Fund-Management-APIs/paths/~1v3~1transfers/get
|
210
|
+
|
209
211
|
:param str [code]: unified currency code for the currency of the deposit/withdrawals, default is None
|
210
212
|
:param int [since]: timestamp in ms of the earliest deposit/withdrawal, default is None
|
211
213
|
:param int [limit]: max number of deposit/withdrawals to return, default is None
|
@@ -217,7 +219,9 @@ class btcmarkets(Exchange, ImplicitAPI):
|
|
217
219
|
def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
218
220
|
"""
|
219
221
|
fetch all deposits made to an account
|
220
|
-
|
222
|
+
|
223
|
+
https://docs.btcmarkets.net/v3/#tag/Fund-Management-APIs/paths/~1v3~1deposits/get
|
224
|
+
|
221
225
|
:param str code: unified currency code
|
222
226
|
:param int [since]: the earliest time in ms to fetch deposits for
|
223
227
|
:param int [limit]: the maximum number of deposits structures to retrieve
|
@@ -229,7 +233,9 @@ class btcmarkets(Exchange, ImplicitAPI):
|
|
229
233
|
def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
230
234
|
"""
|
231
235
|
fetch all withdrawals made from an account
|
232
|
-
|
236
|
+
|
237
|
+
https://docs.btcmarkets.net/v3/#tag/Fund-Management-APIs/paths/~1v3~1withdrawals/get
|
238
|
+
|
233
239
|
:param str code: unified currency code
|
234
240
|
:param int [since]: the earliest time in ms to fetch withdrawals for
|
235
241
|
:param int [limit]: the maximum number of withdrawals structures to retrieve
|
@@ -357,7 +363,9 @@ class btcmarkets(Exchange, ImplicitAPI):
|
|
357
363
|
def fetch_markets(self, params={}) -> List[Market]:
|
358
364
|
"""
|
359
365
|
retrieves data on all markets for btcmarkets
|
360
|
-
|
366
|
+
|
367
|
+
https://docs.btcmarkets.net/v3/#tag/Market-Data-APIs/paths/~1v3~1markets/get
|
368
|
+
|
361
369
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
362
370
|
:returns dict[]: an array of objects representing market data
|
363
371
|
"""
|
@@ -448,7 +456,9 @@ class btcmarkets(Exchange, ImplicitAPI):
|
|
448
456
|
def fetch_time(self, params={}):
|
449
457
|
"""
|
450
458
|
fetches the current integer timestamp in milliseconds from the exchange server
|
451
|
-
|
459
|
+
|
460
|
+
https://docs.btcmarkets.net/v3/#tag/Misc-APIs/paths/~1v3~1time/get
|
461
|
+
|
452
462
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
453
463
|
:returns int: the current integer timestamp in milliseconds from the exchange server
|
454
464
|
"""
|
@@ -475,7 +485,9 @@ class btcmarkets(Exchange, ImplicitAPI):
|
|
475
485
|
def fetch_balance(self, params={}) -> Balances:
|
476
486
|
"""
|
477
487
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
478
|
-
|
488
|
+
|
489
|
+
https://docs.btcmarkets.net/v3/#tag/Account-APIs/paths/~1v3~1accounts~1me~1balances/get
|
490
|
+
|
479
491
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
480
492
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
481
493
|
"""
|
@@ -506,7 +518,9 @@ class btcmarkets(Exchange, ImplicitAPI):
|
|
506
518
|
def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
507
519
|
"""
|
508
520
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
509
|
-
|
521
|
+
|
522
|
+
https://docs.btcmarkets.net/v3/#tag/Market-Data-APIs/paths/~1v3~1markets~1{marketId}~1candles/get
|
523
|
+
|
510
524
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
511
525
|
:param str timeframe: the length of time each candle represents
|
512
526
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -542,7 +556,9 @@ class btcmarkets(Exchange, ImplicitAPI):
|
|
542
556
|
def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
543
557
|
"""
|
544
558
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
545
|
-
|
559
|
+
|
560
|
+
https://docs.btcmarkets.net/v3/#tag/Market-Data-APIs/paths/~1v3~1markets~1{marketId}~1orderbook/get
|
561
|
+
|
546
562
|
:param str symbol: unified symbol of the market to fetch the order book for
|
547
563
|
:param int [limit]: the maximum amount of order book entries to return
|
548
564
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -628,7 +644,9 @@ class btcmarkets(Exchange, ImplicitAPI):
|
|
628
644
|
def fetch_ticker(self, symbol: str, params={}) -> Ticker:
|
629
645
|
"""
|
630
646
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
631
|
-
|
647
|
+
|
648
|
+
https://docs.btcmarkets.net/v3/#tag/Market-Data-APIs/paths/~1v3~1markets~1{marketId}~1ticker/get
|
649
|
+
|
632
650
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
633
651
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
634
652
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -732,7 +750,9 @@ class btcmarkets(Exchange, ImplicitAPI):
|
|
732
750
|
def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
733
751
|
"""
|
734
752
|
get the list of most recent trades for a particular symbol
|
735
|
-
|
753
|
+
|
754
|
+
https://docs.btcmarkets.net/v3/#tag/Market-Data-APIs/paths/~1v3~1markets~1{marketId}~1trades/get
|
755
|
+
|
736
756
|
:param str symbol: unified symbol of the market to fetch trades for
|
737
757
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
738
758
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -758,7 +778,9 @@ class btcmarkets(Exchange, ImplicitAPI):
|
|
758
778
|
def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
759
779
|
"""
|
760
780
|
create a trade order
|
761
|
-
|
781
|
+
|
782
|
+
https://docs.btcmarkets.net/v3/#tag/Order-Placement-APIs/paths/~1v3~1orders/post
|
783
|
+
|
762
784
|
:param str symbol: unified symbol of the market to create an order in
|
763
785
|
:param str type: 'market' or 'limit'
|
764
786
|
:param str side: 'buy' or 'sell'
|
@@ -846,7 +868,9 @@ class btcmarkets(Exchange, ImplicitAPI):
|
|
846
868
|
def cancel_orders(self, ids, symbol: Str = None, params={}):
|
847
869
|
"""
|
848
870
|
cancel multiple orders
|
849
|
-
|
871
|
+
|
872
|
+
https://docs.btcmarkets.net/v3/#tag/Batch-Order-APIs/paths/~1v3~1batchorders~1{ids}/delete
|
873
|
+
|
850
874
|
:param str[] ids: order ids
|
851
875
|
:param str symbol: not used by btcmarkets cancelOrders()
|
852
876
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -885,7 +909,9 @@ class btcmarkets(Exchange, ImplicitAPI):
|
|
885
909
|
def cancel_order(self, id: str, symbol: Str = None, params={}):
|
886
910
|
"""
|
887
911
|
cancels an open order
|
888
|
-
|
912
|
+
|
913
|
+
https://docs.btcmarkets.net/v3/#operation/cancelOrder
|
914
|
+
|
889
915
|
:param str id: order id
|
890
916
|
:param str symbol: not used by btcmarket cancelOrder()
|
891
917
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1017,7 +1043,9 @@ class btcmarkets(Exchange, ImplicitAPI):
|
|
1017
1043
|
def fetch_order(self, id: str, symbol: Str = None, params={}):
|
1018
1044
|
"""
|
1019
1045
|
fetches information on an order made by the user
|
1020
|
-
|
1046
|
+
|
1047
|
+
https://docs.btcmarkets.net/v3/#operation/getOrderById
|
1048
|
+
|
1021
1049
|
:param str id: the order id
|
1022
1050
|
:param str symbol: not used by btcmarkets fetchOrder
|
1023
1051
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1033,7 +1061,9 @@ class btcmarkets(Exchange, ImplicitAPI):
|
|
1033
1061
|
def fetch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1034
1062
|
"""
|
1035
1063
|
fetches information on multiple orders made by the user
|
1036
|
-
|
1064
|
+
|
1065
|
+
https://docs.btcmarkets.net/v3/#operation/listOrders
|
1066
|
+
|
1037
1067
|
:param str symbol: unified market symbol of the market orders were made in
|
1038
1068
|
:param int [since]: the earliest time in ms to fetch orders for
|
1039
1069
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -1058,7 +1088,9 @@ class btcmarkets(Exchange, ImplicitAPI):
|
|
1058
1088
|
def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1059
1089
|
"""
|
1060
1090
|
fetch all unfilled currently open orders
|
1061
|
-
|
1091
|
+
|
1092
|
+
https://docs.btcmarkets.net/v3/#operation/listOrders
|
1093
|
+
|
1062
1094
|
:param str symbol: unified market symbol
|
1063
1095
|
:param int [since]: the earliest time in ms to fetch open orders for
|
1064
1096
|
:param int [limit]: the maximum number of open orders structures to retrieve
|
@@ -1071,7 +1103,9 @@ class btcmarkets(Exchange, ImplicitAPI):
|
|
1071
1103
|
def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1072
1104
|
"""
|
1073
1105
|
fetches information on multiple closed orders made by the user
|
1074
|
-
|
1106
|
+
|
1107
|
+
https://docs.btcmarkets.net/v3/#operation/listOrders
|
1108
|
+
|
1075
1109
|
:param str symbol: unified market symbol of the market orders were made in
|
1076
1110
|
:param int [since]: the earliest time in ms to fetch orders for
|
1077
1111
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -1084,7 +1118,9 @@ class btcmarkets(Exchange, ImplicitAPI):
|
|
1084
1118
|
def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
1085
1119
|
"""
|
1086
1120
|
fetch all trades made by the user
|
1087
|
-
|
1121
|
+
|
1122
|
+
https://docs.btcmarkets.net/v3/#operation/getTrades
|
1123
|
+
|
1088
1124
|
:param str symbol: unified market symbol
|
1089
1125
|
:param int [since]: the earliest time in ms to fetch trades for
|
1090
1126
|
:param int [limit]: the maximum number of trades structures to retrieve
|
@@ -1134,7 +1170,9 @@ class btcmarkets(Exchange, ImplicitAPI):
|
|
1134
1170
|
def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
1135
1171
|
"""
|
1136
1172
|
make a withdrawal
|
1137
|
-
|
1173
|
+
|
1174
|
+
https://docs.btcmarkets.net/v3/#tag/Fund-Management-APIs/paths/~1v3~1withdrawals/post
|
1175
|
+
|
1138
1176
|
:param str code: unified currency code
|
1139
1177
|
:param float amount: the amount to withdraw
|
1140
1178
|
:param str address: the address to withdraw to
|
ccxt/btcturk.py
CHANGED
@@ -155,7 +155,9 @@ class btcturk(Exchange, ImplicitAPI):
|
|
155
155
|
def fetch_markets(self, params={}) -> List[Market]:
|
156
156
|
"""
|
157
157
|
retrieves data on all markets for btcturk
|
158
|
-
|
158
|
+
|
159
|
+
https://docs.btcturk.com/public-endpoints/exchange-info
|
160
|
+
|
159
161
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
160
162
|
:returns dict[]: an array of objects representing market data
|
161
163
|
"""
|
@@ -300,7 +302,9 @@ class btcturk(Exchange, ImplicitAPI):
|
|
300
302
|
def fetch_balance(self, params={}) -> Balances:
|
301
303
|
"""
|
302
304
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
303
|
-
|
305
|
+
|
306
|
+
https://docs.btcturk.com/private-endpoints/account-balance
|
307
|
+
|
304
308
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
305
309
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
306
310
|
"""
|
@@ -327,7 +331,9 @@ class btcturk(Exchange, ImplicitAPI):
|
|
327
331
|
def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
328
332
|
"""
|
329
333
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
330
|
-
|
334
|
+
|
335
|
+
https://docs.btcturk.com/public-endpoints/orderbook
|
336
|
+
|
331
337
|
:param str symbol: unified symbol of the market to fetch the order book for
|
332
338
|
:param int [limit]: the maximum amount of order book entries to return
|
333
339
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -406,7 +412,9 @@ class btcturk(Exchange, ImplicitAPI):
|
|
406
412
|
def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
407
413
|
"""
|
408
414
|
fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
409
|
-
|
415
|
+
|
416
|
+
https://docs.btcturk.com/public-endpoints/ticker
|
417
|
+
|
410
418
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
411
419
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
412
420
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -419,7 +427,9 @@ class btcturk(Exchange, ImplicitAPI):
|
|
419
427
|
def fetch_ticker(self, symbol: str, params={}) -> Ticker:
|
420
428
|
"""
|
421
429
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
422
|
-
|
430
|
+
|
431
|
+
https://docs.btcturk.com/public-endpoints/ticker
|
432
|
+
|
423
433
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
424
434
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
425
435
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -492,7 +502,9 @@ class btcturk(Exchange, ImplicitAPI):
|
|
492
502
|
def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
493
503
|
"""
|
494
504
|
get the list of most recent trades for a particular symbol
|
495
|
-
|
505
|
+
|
506
|
+
https://docs.btcturk.com/public-endpoints/trades
|
507
|
+
|
496
508
|
:param str symbol: unified symbol of the market to fetch trades for
|
497
509
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
498
510
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -551,7 +563,9 @@ class btcturk(Exchange, ImplicitAPI):
|
|
551
563
|
def fetch_ohlcv(self, symbol: str, timeframe='1h', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
552
564
|
"""
|
553
565
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
554
|
-
|
566
|
+
|
567
|
+
https://docs.btcturk.com/public-endpoints/get-kline-data
|
568
|
+
|
555
569
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
556
570
|
:param str timeframe: the length of time each candle represents
|
557
571
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -645,7 +659,9 @@ class btcturk(Exchange, ImplicitAPI):
|
|
645
659
|
def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
646
660
|
"""
|
647
661
|
create a trade order
|
648
|
-
|
662
|
+
|
663
|
+
https://docs.btcturk.com/private-endpoints/submit-order
|
664
|
+
|
649
665
|
:param str symbol: unified symbol of the market to create an order in
|
650
666
|
:param str type: 'market' or 'limit'
|
651
667
|
:param str side: 'buy' or 'sell'
|
@@ -675,7 +691,9 @@ class btcturk(Exchange, ImplicitAPI):
|
|
675
691
|
def cancel_order(self, id: str, symbol: Str = None, params={}):
|
676
692
|
"""
|
677
693
|
cancels an open order
|
678
|
-
|
694
|
+
|
695
|
+
https://docs.btcturk.com/private-endpoints/cancel-order
|
696
|
+
|
679
697
|
:param str id: order id
|
680
698
|
:param str symbol: not used by btcturk cancelOrder()
|
681
699
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -699,7 +717,9 @@ class btcturk(Exchange, ImplicitAPI):
|
|
699
717
|
def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
700
718
|
"""
|
701
719
|
fetch all unfilled currently open orders
|
702
|
-
|
720
|
+
|
721
|
+
https://docs.btcturk.com/private-endpoints/open-orders
|
722
|
+
|
703
723
|
:param str symbol: unified market symbol
|
704
724
|
:param int [since]: the earliest time in ms to fetch open orders for
|
705
725
|
:param int [limit]: the maximum number of open orders structures to retrieve
|
@@ -721,7 +741,9 @@ class btcturk(Exchange, ImplicitAPI):
|
|
721
741
|
def fetch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
722
742
|
"""
|
723
743
|
fetches information on multiple orders made by the user
|
724
|
-
|
744
|
+
|
745
|
+
https://docs.btcturk.com/private-endpoints/all-orders
|
746
|
+
|
725
747
|
:param str symbol: unified market symbol of the market orders were made in
|
726
748
|
:param int [since]: the earliest time in ms to fetch orders for
|
727
749
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -840,7 +862,9 @@ class btcturk(Exchange, ImplicitAPI):
|
|
840
862
|
def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
841
863
|
"""
|
842
864
|
fetch all trades made by the user
|
843
|
-
|
865
|
+
|
866
|
+
https://docs.btcturk.com/private-endpoints/user-transactions
|
867
|
+
|
844
868
|
:param str symbol: unified market symbol
|
845
869
|
:param int [since]: the earliest time in ms to fetch trades for
|
846
870
|
:param int [limit]: the maximum number of trades structures to retrieve
|