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/async_support/coinmetro.py
CHANGED
@@ -261,7 +261,9 @@ class coinmetro(Exchange, ImplicitAPI):
|
|
261
261
|
async def fetch_currencies(self, params={}) -> Currencies:
|
262
262
|
"""
|
263
263
|
fetches all available currencies on an exchange
|
264
|
-
|
264
|
+
|
265
|
+
https://documenter.getpostman.com/view/3653795/SVfWN6KS#d5876d43-a3fe-4479-8c58-24d0f044edfb
|
266
|
+
|
265
267
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
266
268
|
:returns dict: an associative dictionary of currencies
|
267
269
|
"""
|
@@ -343,7 +345,9 @@ class coinmetro(Exchange, ImplicitAPI):
|
|
343
345
|
async def fetch_markets(self, params={}) -> List[Market]:
|
344
346
|
"""
|
345
347
|
retrieves data on all markets for coinmetro
|
346
|
-
|
348
|
+
|
349
|
+
https://documenter.getpostman.com/view/3653795/SVfWN6KS#9fd18008-338e-4863-b07d-722878a46832
|
350
|
+
|
347
351
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
348
352
|
:returns dict[]: an array of objects representing market data
|
349
353
|
"""
|
@@ -468,7 +472,9 @@ class coinmetro(Exchange, ImplicitAPI):
|
|
468
472
|
async def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
469
473
|
"""
|
470
474
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
471
|
-
|
475
|
+
|
476
|
+
https://documenter.getpostman.com/view/3653795/SVfWN6KS#13cfb5bc-7bfb-4847-85e1-e0f35dfb3573
|
477
|
+
|
472
478
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
473
479
|
:param str timeframe: the length of time each candle represents
|
474
480
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -541,7 +547,9 @@ class coinmetro(Exchange, ImplicitAPI):
|
|
541
547
|
async def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
542
548
|
"""
|
543
549
|
get the list of most recent trades for a particular symbol
|
544
|
-
|
550
|
+
|
551
|
+
https://documenter.getpostman.com/view/3653795/SVfWN6KS#6ee5d698-06da-4570-8c84-914185e05065
|
552
|
+
|
545
553
|
:param str symbol: unified symbol of the market to fetch trades for
|
546
554
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
547
555
|
:param int [limit]: the maximum amount of trades to fetch(default 200, max 500)
|
@@ -593,7 +601,9 @@ class coinmetro(Exchange, ImplicitAPI):
|
|
593
601
|
async def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
594
602
|
"""
|
595
603
|
fetch all trades made by the user
|
596
|
-
|
604
|
+
|
605
|
+
https://documenter.getpostman.com/view/3653795/SVfWN6KS#4d48ae69-8ee2-44d1-a268-71f84e557b7b
|
606
|
+
|
597
607
|
:param str symbol: unified market symbol
|
598
608
|
:param int [since]: the earliest time in ms to fetch trades for
|
599
609
|
:param int [limit]: the maximum number of trades structures to retrieve(default 500, max 1000)
|
@@ -698,7 +708,9 @@ class coinmetro(Exchange, ImplicitAPI):
|
|
698
708
|
async def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
699
709
|
"""
|
700
710
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
701
|
-
|
711
|
+
|
712
|
+
https://documenter.getpostman.com/view/3653795/SVfWN6KS#26ad80d7-8c46-41b5-9208-386f439a8b87
|
713
|
+
|
702
714
|
:param str symbol: unified symbol of the market to fetch the order book for
|
703
715
|
:param int [limit]: the maximum amount of order book entries to return(default 100, max 200)
|
704
716
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -761,7 +773,9 @@ class coinmetro(Exchange, ImplicitAPI):
|
|
761
773
|
async def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
762
774
|
"""
|
763
775
|
fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
764
|
-
|
776
|
+
|
777
|
+
https://documenter.getpostman.com/view/3653795/SVfWN6KS#6ecd1cd1-f162-45a3-8b3b-de690332a485
|
778
|
+
|
765
779
|
:param str[] [symbols]: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
766
780
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
767
781
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -837,7 +851,9 @@ class coinmetro(Exchange, ImplicitAPI):
|
|
837
851
|
async def fetch_bids_asks(self, symbols: Strings = None, params={}):
|
838
852
|
"""
|
839
853
|
fetches the bid and ask price and volume for multiple markets
|
840
|
-
|
854
|
+
|
855
|
+
https://documenter.getpostman.com/view/3653795/SVfWN6KS#6ecd1cd1-f162-45a3-8b3b-de690332a485
|
856
|
+
|
841
857
|
:param str[] [symbols]: unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
|
842
858
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
843
859
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -903,7 +919,9 @@ class coinmetro(Exchange, ImplicitAPI):
|
|
903
919
|
async def fetch_balance(self, params={}) -> Balances:
|
904
920
|
"""
|
905
921
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
906
|
-
|
922
|
+
|
923
|
+
https://documenter.getpostman.com/view/3653795/SVfWN6KS#741a1dcc-7307-40d0-acca-28d003d1506a
|
924
|
+
|
907
925
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
908
926
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
909
927
|
"""
|
@@ -951,7 +969,9 @@ class coinmetro(Exchange, ImplicitAPI):
|
|
951
969
|
async def fetch_ledger(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[LedgerEntry]:
|
952
970
|
"""
|
953
971
|
fetch the history of changes, actions done by the user or operations that altered the balance of the user
|
954
|
-
|
972
|
+
|
973
|
+
https://documenter.getpostman.com/view/3653795/SVfWN6KS#4e7831f7-a0e7-4c3e-9336-1d0e5dcb15cf
|
974
|
+
|
955
975
|
:param str [code]: unified currency code, default is None
|
956
976
|
:param int [since]: timestamp in ms of the earliest ledger entry, default is None
|
957
977
|
:param int [limit]: max number of ledger entries to return(default 200, max 500)
|
@@ -1135,7 +1155,9 @@ class coinmetro(Exchange, ImplicitAPI):
|
|
1135
1155
|
async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
1136
1156
|
"""
|
1137
1157
|
create a trade order
|
1138
|
-
|
1158
|
+
|
1159
|
+
https://documenter.getpostman.com/view/3653795/SVfWN6KS#a4895a1d-3f50-40ae-8231-6962ef06c771
|
1160
|
+
|
1139
1161
|
:param str symbol: unified symbol of the market to create an order in
|
1140
1162
|
:param str type: 'market' or 'limit'
|
1141
1163
|
:param str side: 'buy' or 'sell'
|
@@ -1251,8 +1273,10 @@ class coinmetro(Exchange, ImplicitAPI):
|
|
1251
1273
|
async def cancel_order(self, id: str, symbol: Str = None, params={}):
|
1252
1274
|
"""
|
1253
1275
|
cancels an open order
|
1254
|
-
|
1255
|
-
|
1276
|
+
|
1277
|
+
https://documenter.getpostman.com/view/3653795/SVfWN6KS#eaea86da-16ca-4c56-9f00-5b1cb2ad89f8
|
1278
|
+
https://documenter.getpostman.com/view/3653795/SVfWN6KS#47f913fb-8cab-49f4-bc78-d980e6ced316
|
1279
|
+
|
1256
1280
|
:param str id: order id
|
1257
1281
|
:param str symbol: not used by coinmetro cancelOrder()
|
1258
1282
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1296,7 +1320,9 @@ class coinmetro(Exchange, ImplicitAPI):
|
|
1296
1320
|
async def close_position(self, symbol: str, side: OrderSide = None, params={}):
|
1297
1321
|
"""
|
1298
1322
|
closes an open position
|
1299
|
-
|
1323
|
+
|
1324
|
+
https://documenter.getpostman.com/view/3653795/SVfWN6KS#47f913fb-8cab-49f4-bc78-d980e6ced316
|
1325
|
+
|
1300
1326
|
:param str symbol: not used by coinmetro closePosition()
|
1301
1327
|
:param str [side]: not used by coinmetro closePosition()
|
1302
1328
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1346,7 +1372,9 @@ class coinmetro(Exchange, ImplicitAPI):
|
|
1346
1372
|
async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1347
1373
|
"""
|
1348
1374
|
fetch all unfilled currently open orders
|
1349
|
-
|
1375
|
+
|
1376
|
+
https://documenter.getpostman.com/view/3653795/SVfWN6KS#518afd7a-4338-439c-a651-d4fdaa964138
|
1377
|
+
|
1350
1378
|
:param str symbol: unified market symbol
|
1351
1379
|
:param int [since]: the earliest time in ms to fetch open orders for
|
1352
1380
|
:param int [limit]: the maximum number of open order structures to retrieve
|
@@ -1367,7 +1395,9 @@ class coinmetro(Exchange, ImplicitAPI):
|
|
1367
1395
|
async def fetch_canceled_and_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1368
1396
|
"""
|
1369
1397
|
fetches information on multiple canceled and closed orders made by the user
|
1370
|
-
|
1398
|
+
|
1399
|
+
https://documenter.getpostman.com/view/3653795/SVfWN6KS#4d48ae69-8ee2-44d1-a268-71f84e557b7b
|
1400
|
+
|
1371
1401
|
:param str symbol: unified market symbol of the market orders were made in
|
1372
1402
|
:param int [since]: the earliest time in ms to fetch orders for
|
1373
1403
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -1387,7 +1417,9 @@ class coinmetro(Exchange, ImplicitAPI):
|
|
1387
1417
|
async def fetch_order(self, id: str, symbol: Str = None, params={}):
|
1388
1418
|
"""
|
1389
1419
|
fetches information on an order made by the user
|
1390
|
-
|
1420
|
+
|
1421
|
+
https://documenter.getpostman.com/view/3653795/SVfWN6KS#95bbed87-db1c-47a7-a03e-aa247e91d5a6
|
1422
|
+
|
1391
1423
|
:param int|str id: order id
|
1392
1424
|
:param str symbol: not used by coinmetro fetchOrder()
|
1393
1425
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1717,7 +1749,9 @@ class coinmetro(Exchange, ImplicitAPI):
|
|
1717
1749
|
async def borrow_cross_margin(self, code: str, amount: float, params={}):
|
1718
1750
|
"""
|
1719
1751
|
create a loan to borrow margin
|
1720
|
-
|
1752
|
+
|
1753
|
+
https://documenter.getpostman.com/view/3653795/SVfWN6KS#5b90b3b9-e5db-4d07-ac9d-d680a06fd110
|
1754
|
+
|
1721
1755
|
:param str code: unified currency code of the currency to borrow
|
1722
1756
|
:param float amount: the amount to borrow
|
1723
1757
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
ccxt/async_support/coinone.py
CHANGED
@@ -212,7 +212,9 @@ class coinone(Exchange, ImplicitAPI):
|
|
212
212
|
async def fetch_currencies(self, params={}) -> Currencies:
|
213
213
|
"""
|
214
214
|
fetches all available currencies on an exchange
|
215
|
-
|
215
|
+
|
216
|
+
https://docs.coinone.co.kr/reference/currencies
|
217
|
+
|
216
218
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
217
219
|
:returns dict: an associative dictionary of currencies
|
218
220
|
"""
|
@@ -275,7 +277,9 @@ class coinone(Exchange, ImplicitAPI):
|
|
275
277
|
async def fetch_markets(self, params={}) -> List[Market]:
|
276
278
|
"""
|
277
279
|
retrieves data on all markets for coinone
|
278
|
-
|
280
|
+
|
281
|
+
https://docs.coinone.co.kr/v1.0/reference/tickers
|
282
|
+
|
279
283
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
280
284
|
:returns dict[]: an array of objects representing market data
|
281
285
|
"""
|
@@ -398,7 +402,9 @@ class coinone(Exchange, ImplicitAPI):
|
|
398
402
|
async def fetch_balance(self, params={}) -> Balances:
|
399
403
|
"""
|
400
404
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
401
|
-
|
405
|
+
|
406
|
+
https://docs.coinone.co.kr/v1.0/reference/v21
|
407
|
+
|
402
408
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
403
409
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
404
410
|
"""
|
@@ -409,7 +415,9 @@ class coinone(Exchange, ImplicitAPI):
|
|
409
415
|
async def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
410
416
|
"""
|
411
417
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
412
|
-
|
418
|
+
|
419
|
+
https://docs.coinone.co.kr/v1.0/reference/orderbook
|
420
|
+
|
413
421
|
:param str symbol: unified symbol of the market to fetch the order book for
|
414
422
|
:param int [limit]: the maximum amount of order book entries to return
|
415
423
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -453,8 +461,10 @@ class coinone(Exchange, ImplicitAPI):
|
|
453
461
|
async def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
454
462
|
"""
|
455
463
|
fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
456
|
-
|
457
|
-
|
464
|
+
|
465
|
+
https://docs.coinone.co.kr/v1.0/reference/tickers
|
466
|
+
https://docs.coinone.co.kr/v1.0/reference/ticker
|
467
|
+
|
458
468
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
459
469
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
460
470
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -513,7 +523,9 @@ class coinone(Exchange, ImplicitAPI):
|
|
513
523
|
async def fetch_ticker(self, symbol: str, params={}) -> Ticker:
|
514
524
|
"""
|
515
525
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
516
|
-
|
526
|
+
|
527
|
+
https://docs.coinone.co.kr/v1.0/reference/ticker
|
528
|
+
|
517
529
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
518
530
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
519
531
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -684,7 +696,9 @@ class coinone(Exchange, ImplicitAPI):
|
|
684
696
|
async def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
685
697
|
"""
|
686
698
|
get the list of most recent trades for a particular symbol
|
687
|
-
|
699
|
+
|
700
|
+
https://docs.coinone.co.kr/v1.0/reference/recent-completed-orders
|
701
|
+
|
688
702
|
:param str symbol: unified symbol of the market to fetch trades for
|
689
703
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
690
704
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -724,8 +738,10 @@ class coinone(Exchange, ImplicitAPI):
|
|
724
738
|
async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
725
739
|
"""
|
726
740
|
create a trade order
|
727
|
-
|
728
|
-
|
741
|
+
|
742
|
+
https://doc.coinone.co.kr/#tag/Order-V2/operation/v2_order_limit_buy
|
743
|
+
https://doc.coinone.co.kr/#tag/Order-V2/operation/v2_order_limit_sell
|
744
|
+
|
729
745
|
:param str symbol: unified symbol of the market to create an order in
|
730
746
|
:param str type: must be 'limit'
|
731
747
|
:param str side: 'buy' or 'sell'
|
@@ -757,6 +773,7 @@ class coinone(Exchange, ImplicitAPI):
|
|
757
773
|
async def fetch_order(self, id: str, symbol: Str = None, params={}):
|
758
774
|
"""
|
759
775
|
fetches information on an order made by the user
|
776
|
+
:param str id: order id
|
760
777
|
:param str symbol: unified symbol of the market the order was made in
|
761
778
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
762
779
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
ccxt/async_support/coinsph.py
CHANGED
@@ -456,7 +456,9 @@ class coinsph(Exchange, ImplicitAPI):
|
|
456
456
|
async def fetch_status(self, params={}):
|
457
457
|
"""
|
458
458
|
the latest known information on the availability of the exchange API
|
459
|
-
|
459
|
+
|
460
|
+
https://coins-docs.github.io/rest-api/#test-connectivity
|
461
|
+
|
460
462
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
461
463
|
:returns dict: a `status structure <https://docs.ccxt.com/#/?id=exchange-status-structure>`
|
462
464
|
"""
|
@@ -472,7 +474,9 @@ class coinsph(Exchange, ImplicitAPI):
|
|
472
474
|
async def fetch_time(self, params={}):
|
473
475
|
"""
|
474
476
|
fetches the current integer timestamp in milliseconds from the exchange server
|
475
|
-
|
477
|
+
|
478
|
+
https://coins-docs.github.io/rest-api/#check-server-time
|
479
|
+
|
476
480
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
477
481
|
:returns int: the current integer timestamp in milliseconds from the exchange server
|
478
482
|
"""
|
@@ -485,7 +489,9 @@ class coinsph(Exchange, ImplicitAPI):
|
|
485
489
|
async def fetch_markets(self, params={}) -> List[Market]:
|
486
490
|
"""
|
487
491
|
retrieves data on all markets for coinsph
|
488
|
-
|
492
|
+
|
493
|
+
https://coins-docs.github.io/rest-api/#exchange-information
|
494
|
+
|
489
495
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
490
496
|
:returns dict[]: an array of objects representing market data
|
491
497
|
"""
|
@@ -619,9 +625,11 @@ class coinsph(Exchange, ImplicitAPI):
|
|
619
625
|
async def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
620
626
|
"""
|
621
627
|
fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
622
|
-
|
623
|
-
|
624
|
-
|
628
|
+
|
629
|
+
https://coins-docs.github.io/rest-api/#24hr-ticker-price-change-statistics
|
630
|
+
https://coins-docs.github.io/rest-api/#symbol-price-ticker
|
631
|
+
https://coins-docs.github.io/rest-api/#symbol-order-book-ticker
|
632
|
+
|
625
633
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
626
634
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
627
635
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -650,9 +658,11 @@ class coinsph(Exchange, ImplicitAPI):
|
|
650
658
|
async def fetch_ticker(self, symbol: str, params={}) -> Ticker:
|
651
659
|
"""
|
652
660
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
653
|
-
|
654
|
-
|
655
|
-
|
661
|
+
|
662
|
+
https://coins-docs.github.io/rest-api/#24hr-ticker-price-change-statistics
|
663
|
+
https://coins-docs.github.io/rest-api/#symbol-price-ticker
|
664
|
+
https://coins-docs.github.io/rest-api/#symbol-order-book-ticker
|
665
|
+
|
656
666
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
657
667
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
658
668
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -755,7 +765,9 @@ class coinsph(Exchange, ImplicitAPI):
|
|
755
765
|
async def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
756
766
|
"""
|
757
767
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
758
|
-
|
768
|
+
|
769
|
+
https://coins-docs.github.io/rest-api/#order-book
|
770
|
+
|
759
771
|
:param str symbol: unified symbol of the market to fetch the order book for
|
760
772
|
:param int [limit]: the maximum amount of order book entries to return(default 100, max 200)
|
761
773
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -789,7 +801,9 @@ class coinsph(Exchange, ImplicitAPI):
|
|
789
801
|
async def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
790
802
|
"""
|
791
803
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
792
|
-
|
804
|
+
|
805
|
+
https://coins-docs.github.io/rest-api/#klinecandlestick-data
|
806
|
+
|
793
807
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
794
808
|
:param str timeframe: the length of time each candle represents
|
795
809
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -849,7 +863,9 @@ class coinsph(Exchange, ImplicitAPI):
|
|
849
863
|
async def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
850
864
|
"""
|
851
865
|
get the list of most recent trades for a particular symbol
|
852
|
-
|
866
|
+
|
867
|
+
https://coins-docs.github.io/rest-api/#recent-trades-list
|
868
|
+
|
853
869
|
:param str symbol: unified symbol of the market to fetch trades for
|
854
870
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
855
871
|
:param int [limit]: the maximum amount of trades to fetch(default 500, max 1000)
|
@@ -886,7 +902,9 @@ class coinsph(Exchange, ImplicitAPI):
|
|
886
902
|
async def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
887
903
|
"""
|
888
904
|
fetch all trades made by the user
|
889
|
-
|
905
|
+
|
906
|
+
https://coins-docs.github.io/rest-api/#account-trade-list-user_data
|
907
|
+
|
890
908
|
:param str symbol: unified market symbol
|
891
909
|
:param int [since]: the earliest time in ms to fetch trades for
|
892
910
|
:param int [limit]: the maximum number of trades structures to retrieve(default 500, max 1000)
|
@@ -912,7 +930,9 @@ class coinsph(Exchange, ImplicitAPI):
|
|
912
930
|
async def fetch_order_trades(self, id: str, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
913
931
|
"""
|
914
932
|
fetch all the trades made from a single order
|
915
|
-
|
933
|
+
|
934
|
+
https://coins-docs.github.io/rest-api/#account-trade-list-user_data
|
935
|
+
|
916
936
|
:param str id: order id
|
917
937
|
:param str symbol: unified market symbol
|
918
938
|
:param int [since]: the earliest time in ms to fetch trades for
|
@@ -1012,7 +1032,9 @@ class coinsph(Exchange, ImplicitAPI):
|
|
1012
1032
|
async def fetch_balance(self, params={}) -> Balances:
|
1013
1033
|
"""
|
1014
1034
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
1015
|
-
|
1035
|
+
|
1036
|
+
https://coins-docs.github.io/rest-api/#accept-the-quote
|
1037
|
+
|
1016
1038
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1017
1039
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
1018
1040
|
"""
|
@@ -1061,7 +1083,9 @@ class coinsph(Exchange, ImplicitAPI):
|
|
1061
1083
|
async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
1062
1084
|
"""
|
1063
1085
|
create a trade order
|
1064
|
-
|
1086
|
+
|
1087
|
+
https://coins-docs.github.io/rest-api/#new-order--trade
|
1088
|
+
|
1065
1089
|
:param str symbol: unified symbol of the market to create an order in
|
1066
1090
|
:param str type: 'market', 'limit', 'stop_loss', 'take_profit', 'stop_loss_limit', 'take_profit_limit' or 'limit_maker'
|
1067
1091
|
:param str side: 'buy' or 'sell'
|
@@ -1165,7 +1189,9 @@ class coinsph(Exchange, ImplicitAPI):
|
|
1165
1189
|
async def fetch_order(self, id: str, symbol: Str = None, params={}):
|
1166
1190
|
"""
|
1167
1191
|
fetches information on an order made by the user
|
1168
|
-
|
1192
|
+
|
1193
|
+
https://coins-docs.github.io/rest-api/#query-order-user_data
|
1194
|
+
|
1169
1195
|
:param int|str id: order id
|
1170
1196
|
:param str symbol: not used by coinsph fetchOrder()
|
1171
1197
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1185,7 +1211,9 @@ class coinsph(Exchange, ImplicitAPI):
|
|
1185
1211
|
async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1186
1212
|
"""
|
1187
1213
|
fetch all unfilled currently open orders
|
1188
|
-
|
1214
|
+
|
1215
|
+
https://coins-docs.github.io/rest-api/#query-order-user_data
|
1216
|
+
|
1189
1217
|
:param str symbol: unified market symbol
|
1190
1218
|
:param int [since]: the earliest time in ms to fetch open orders for
|
1191
1219
|
:param int [limit]: the maximum number of open orders structures to retrieve
|
@@ -1204,7 +1232,9 @@ class coinsph(Exchange, ImplicitAPI):
|
|
1204
1232
|
async def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1205
1233
|
"""
|
1206
1234
|
fetches information on multiple closed orders made by the user
|
1207
|
-
|
1235
|
+
|
1236
|
+
https://coins-docs.github.io/rest-api/#history-orders-user_data
|
1237
|
+
|
1208
1238
|
:param str symbol: unified market symbol of the market orders were made in
|
1209
1239
|
:param int [since]: the earliest time in ms to fetch orders for
|
1210
1240
|
:param int [limit]: the maximum number of order structures to retrieve(default 500, max 1000)
|
@@ -1230,7 +1260,9 @@ class coinsph(Exchange, ImplicitAPI):
|
|
1230
1260
|
async def cancel_order(self, id: str, symbol: Str = None, params={}):
|
1231
1261
|
"""
|
1232
1262
|
cancels an open order
|
1233
|
-
|
1263
|
+
|
1264
|
+
https://coins-docs.github.io/rest-api/#cancel-order-trade
|
1265
|
+
|
1234
1266
|
:param str id: order id
|
1235
1267
|
:param str symbol: not used by coinsph cancelOrder()
|
1236
1268
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1250,7 +1282,9 @@ class coinsph(Exchange, ImplicitAPI):
|
|
1250
1282
|
async def cancel_all_orders(self, symbol: Str = None, params={}):
|
1251
1283
|
"""
|
1252
1284
|
cancel open orders of market
|
1253
|
-
|
1285
|
+
|
1286
|
+
https://coins-docs.github.io/rest-api/#cancel-all-open-orders-on-a-symbol-trade
|
1287
|
+
|
1254
1288
|
:param str symbol: unified market symbol
|
1255
1289
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1256
1290
|
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
@@ -1428,7 +1462,9 @@ class coinsph(Exchange, ImplicitAPI):
|
|
1428
1462
|
async def fetch_trading_fee(self, symbol: str, params={}) -> TradingFeeInterface:
|
1429
1463
|
"""
|
1430
1464
|
fetch the trading fees for a market
|
1431
|
-
|
1465
|
+
|
1466
|
+
https://coins-docs.github.io/rest-api/#trade-fee-user_data
|
1467
|
+
|
1432
1468
|
:param str symbol: unified market symbol
|
1433
1469
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1434
1470
|
:returns dict: a `fee structure <https://docs.ccxt.com/#/?id=fee-structure>`
|
@@ -1454,7 +1490,9 @@ class coinsph(Exchange, ImplicitAPI):
|
|
1454
1490
|
async def fetch_trading_fees(self, params={}) -> TradingFees:
|
1455
1491
|
"""
|
1456
1492
|
fetch the trading fees for multiple markets
|
1457
|
-
|
1493
|
+
|
1494
|
+
https://coins-docs.github.io/rest-api/#trade-fee-user_data
|
1495
|
+
|
1458
1496
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1459
1497
|
:returns dict: a dictionary of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>` indexed by market symbols
|
1460
1498
|
"""
|
@@ -1504,7 +1542,9 @@ class coinsph(Exchange, ImplicitAPI):
|
|
1504
1542
|
async def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
1505
1543
|
"""
|
1506
1544
|
make a withdrawal to coins_ph account
|
1507
|
-
|
1545
|
+
|
1546
|
+
https://coins-docs.github.io/rest-api/#withdrawuser_data
|
1547
|
+
|
1508
1548
|
:param str code: unified currency code
|
1509
1549
|
:param float amount: the amount to withdraw
|
1510
1550
|
:param str address: not used by coinsph withdraw()
|
@@ -1537,7 +1577,9 @@ class coinsph(Exchange, ImplicitAPI):
|
|
1537
1577
|
async def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
1538
1578
|
"""
|
1539
1579
|
fetch all deposits made to an account
|
1540
|
-
|
1580
|
+
|
1581
|
+
https://coins-docs.github.io/rest-api/#deposit-history-user_data
|
1582
|
+
|
1541
1583
|
:param str code: unified currency code
|
1542
1584
|
:param int [since]: the earliest time in ms to fetch deposits for
|
1543
1585
|
:param int [limit]: the maximum number of deposits structures to retrieve
|
@@ -1589,7 +1631,9 @@ class coinsph(Exchange, ImplicitAPI):
|
|
1589
1631
|
async def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
1590
1632
|
"""
|
1591
1633
|
fetch all withdrawals made from an account
|
1592
|
-
|
1634
|
+
|
1635
|
+
https://coins-docs.github.io/rest-api/#withdraw-history-user_data
|
1636
|
+
|
1593
1637
|
:param str code: unified currency code
|
1594
1638
|
:param int [since]: the earliest time in ms to fetch withdrawals for
|
1595
1639
|
:param int [limit]: the maximum number of withdrawals structures to retrieve
|
@@ -1743,7 +1787,9 @@ class coinsph(Exchange, ImplicitAPI):
|
|
1743
1787
|
async def fetch_deposit_address(self, code: str, params={}) -> DepositAddress:
|
1744
1788
|
"""
|
1745
1789
|
fetch the deposit address for a currency associated with self account
|
1746
|
-
|
1790
|
+
|
1791
|
+
https://coins-docs.github.io/rest-api/#deposit-address-user_data
|
1792
|
+
|
1747
1793
|
:param str code: unified currency code
|
1748
1794
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1749
1795
|
:param str [params.network]: network for fetch deposit address
|
ccxt/async_support/coinspot.py
CHANGED
@@ -174,7 +174,9 @@ class coinspot(Exchange, ImplicitAPI):
|
|
174
174
|
async def fetch_balance(self, params={}) -> Balances:
|
175
175
|
"""
|
176
176
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
177
|
-
|
177
|
+
|
178
|
+
https://www.coinspot.com.au/api#listmybalance
|
179
|
+
|
178
180
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
179
181
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
180
182
|
"""
|
@@ -202,7 +204,9 @@ class coinspot(Exchange, ImplicitAPI):
|
|
202
204
|
async def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
203
205
|
"""
|
204
206
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
205
|
-
|
207
|
+
|
208
|
+
https://www.coinspot.com.au/api#listopenorders
|
209
|
+
|
206
210
|
:param str symbol: unified symbol of the market to fetch the order book for
|
207
211
|
:param int [limit]: the maximum amount of order book entries to return
|
208
212
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -254,7 +258,9 @@ class coinspot(Exchange, ImplicitAPI):
|
|
254
258
|
async def fetch_ticker(self, symbol: str, params={}) -> Ticker:
|
255
259
|
"""
|
256
260
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
257
|
-
|
261
|
+
|
262
|
+
https://www.coinspot.com.au/api#latestprices
|
263
|
+
|
258
264
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
259
265
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
260
266
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -283,7 +289,9 @@ class coinspot(Exchange, ImplicitAPI):
|
|
283
289
|
async def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
284
290
|
"""
|
285
291
|
fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
286
|
-
|
292
|
+
|
293
|
+
https://www.coinspot.com.au/api#latestprices
|
294
|
+
|
287
295
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
288
296
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
289
297
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -322,7 +330,9 @@ class coinspot(Exchange, ImplicitAPI):
|
|
322
330
|
async def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
323
331
|
"""
|
324
332
|
get the list of most recent trades for a particular symbol
|
325
|
-
|
333
|
+
|
334
|
+
https://www.coinspot.com.au/api#orderhistory
|
335
|
+
|
326
336
|
:param str symbol: unified symbol of the market to fetch trades for
|
327
337
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
328
338
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -349,7 +359,9 @@ class coinspot(Exchange, ImplicitAPI):
|
|
349
359
|
async def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
350
360
|
"""
|
351
361
|
fetch all trades made by the user
|
352
|
-
|
362
|
+
|
363
|
+
https://www.coinspot.com.au/api#rotransaction
|
364
|
+
|
353
365
|
:param str symbol: unified market symbol
|
354
366
|
:param int [since]: the earliest time in ms to fetch trades for
|
355
367
|
:param int [limit]: the maximum number of trades structures to retrieve
|
@@ -470,7 +482,9 @@ class coinspot(Exchange, ImplicitAPI):
|
|
470
482
|
async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
471
483
|
"""
|
472
484
|
create a trade order
|
473
|
-
|
485
|
+
|
486
|
+
https://www.coinspot.com.au/api#placebuyorder
|
487
|
+
|
474
488
|
:param str symbol: unified symbol of the market to create an order in
|
475
489
|
:param str type: must be 'limit'
|
476
490
|
:param str side: 'buy' or 'sell'
|
@@ -494,8 +508,10 @@ class coinspot(Exchange, ImplicitAPI):
|
|
494
508
|
async def cancel_order(self, id: str, symbol: Str = None, params={}):
|
495
509
|
"""
|
496
510
|
cancels an open order
|
497
|
-
|
498
|
-
|
511
|
+
|
512
|
+
https://www.coinspot.com.au/api#cancelbuyorder
|
513
|
+
https://www.coinspot.com.au/api#cancelsellorder
|
514
|
+
|
499
515
|
:param str id: order id
|
500
516
|
:param str symbol: not used by coinspot cancelOrder()
|
501
517
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|