ccxt 4.0.107__py2.py3-none-any.whl → 4.0.109__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ccxt/__init__.py +1 -1
- ccxt/abstract/binance.py +2 -5
- ccxt/abstract/binancecoinm.py +2 -5
- ccxt/abstract/binanceus.py +2 -5
- ccxt/abstract/binanceusdm.py +2 -5
- ccxt/async_support/__init__.py +1 -1
- ccxt/async_support/base/exchange.py +9 -9
- ccxt/async_support/binance.py +5 -8
- ccxt/async_support/bitfinex2.py +2 -2
- ccxt/async_support/bitflyer.py +17 -0
- ccxt/async_support/bitforex.py +9 -0
- ccxt/async_support/bitget.py +40 -3
- ccxt/async_support/bitmart.py +74 -11
- ccxt/async_support/exmo.py +6 -6
- ccxt/base/exchange.py +9 -9
- ccxt/binance.py +5 -8
- ccxt/bitfinex2.py +2 -2
- ccxt/bitflyer.py +17 -0
- ccxt/bitforex.py +9 -0
- ccxt/bitget.py +40 -3
- ccxt/bitmart.py +74 -11
- ccxt/exmo.py +6 -6
- ccxt/pro/__init__.py +1 -1
- ccxt/pro/bitget.py +5 -5
- ccxt/pro/bybit.py +3 -3
- ccxt/pro/woo.py +66 -1
- {ccxt-4.0.107.dist-info → ccxt-4.0.109.dist-info}/METADATA +4 -4
- {ccxt-4.0.107.dist-info → ccxt-4.0.109.dist-info}/RECORD +30 -30
- {ccxt-4.0.107.dist-info → ccxt-4.0.109.dist-info}/WHEEL +0 -0
- {ccxt-4.0.107.dist-info → ccxt-4.0.109.dist-info}/top_level.txt +0 -0
ccxt/__init__.py
CHANGED
ccxt/abstract/binance.py
CHANGED
@@ -75,11 +75,7 @@ class ImplicitAPI:
|
|
75
75
|
sapi_get_fiat_orders = sapiGetFiatOrders = Entry('fiat/orders', 'sapi', 'GET', {'cost': 600.03})
|
76
76
|
sapi_get_fiat_payments = sapiGetFiatPayments = Entry('fiat/payments', 'sapi', 'GET', {'cost': 0.1})
|
77
77
|
sapi_get_futures_transfer = sapiGetFuturesTransfer = Entry('futures/transfer', 'sapi', 'GET', {'cost': 1})
|
78
|
-
|
79
|
-
sapi_get_futures_loan_repay_history = sapiGetFuturesLoanRepayHistory = Entry('futures/loan/repay/history', 'sapi', 'GET', {'cost': 1})
|
80
|
-
sapi_get_futures_loan_wallet = sapiGetFuturesLoanWallet = Entry('futures/loan/wallet', 'sapi', 'GET', {'cost': 1})
|
81
|
-
sapi_get_futures_loan_adjustcollateral_history = sapiGetFuturesLoanAdjustCollateralHistory = Entry('futures/loan/adjustCollateral/history', 'sapi', 'GET', {'cost': 1})
|
82
|
-
sapi_get_futures_loan_liquidationhistory = sapiGetFuturesLoanLiquidationHistory = Entry('futures/loan/liquidationHistory', 'sapi', 'GET', {'cost': 1})
|
78
|
+
sapi_get_futures_histdatalink = sapiGetFuturesHistDataLink = Entry('futures/histDataLink', 'sapi', 'GET', {'cost': 0.1})
|
83
79
|
sapi_get_rebate_taxquery = sapiGetRebateTaxQuery = Entry('rebate/taxQuery', 'sapi', 'GET', {'cost': 80.004})
|
84
80
|
sapi_get_capital_config_getall = sapiGetCapitalConfigGetall = Entry('capital/config/getall', 'sapi', 'GET', {'cost': 1})
|
85
81
|
sapi_get_capital_deposit_address = sapiGetCapitalDepositAddress = Entry('capital/deposit/address', 'sapi', 'GET', {'cost': 1})
|
@@ -443,6 +439,7 @@ class ImplicitAPI:
|
|
443
439
|
fapipublic_get_markpriceklines = fapiPublicGetMarkPriceKlines = Entry('markPriceKlines', 'fapiPublic', 'GET', {'cost': 1, 'byLimit': [[99, 1], [499, 2], [1000, 5], [10000, 10]]})
|
444
440
|
fapipublic_get_indexpriceklines = fapiPublicGetIndexPriceKlines = Entry('indexPriceKlines', 'fapiPublic', 'GET', {'cost': 1, 'byLimit': [[99, 1], [499, 2], [1000, 5], [10000, 10]]})
|
445
441
|
fapipublic_get_fundingrate = fapiPublicGetFundingRate = Entry('fundingRate', 'fapiPublic', 'GET', {'cost': 1})
|
442
|
+
fapipublic_get_fundinginfo = fapiPublicGetFundingInfo = Entry('fundingInfo', 'fapiPublic', 'GET', {'cost': 1})
|
446
443
|
fapipublic_get_premiumindex = fapiPublicGetPremiumIndex = Entry('premiumIndex', 'fapiPublic', 'GET', {'cost': 1})
|
447
444
|
fapipublic_get_ticker_24hr = fapiPublicGetTicker24hr = Entry('ticker/24hr', 'fapiPublic', 'GET', {'cost': 1, 'noSymbol': 40})
|
448
445
|
fapipublic_get_ticker_price = fapiPublicGetTickerPrice = Entry('ticker/price', 'fapiPublic', 'GET', {'cost': 1, 'noSymbol': 2})
|
ccxt/abstract/binancecoinm.py
CHANGED
@@ -75,11 +75,7 @@ class ImplicitAPI:
|
|
75
75
|
sapi_get_fiat_orders = sapiGetFiatOrders = Entry('fiat/orders', 'sapi', 'GET', {'cost': 600.03})
|
76
76
|
sapi_get_fiat_payments = sapiGetFiatPayments = Entry('fiat/payments', 'sapi', 'GET', {'cost': 0.1})
|
77
77
|
sapi_get_futures_transfer = sapiGetFuturesTransfer = Entry('futures/transfer', 'sapi', 'GET', {'cost': 1})
|
78
|
-
|
79
|
-
sapi_get_futures_loan_repay_history = sapiGetFuturesLoanRepayHistory = Entry('futures/loan/repay/history', 'sapi', 'GET', {'cost': 1})
|
80
|
-
sapi_get_futures_loan_wallet = sapiGetFuturesLoanWallet = Entry('futures/loan/wallet', 'sapi', 'GET', {'cost': 1})
|
81
|
-
sapi_get_futures_loan_adjustcollateral_history = sapiGetFuturesLoanAdjustCollateralHistory = Entry('futures/loan/adjustCollateral/history', 'sapi', 'GET', {'cost': 1})
|
82
|
-
sapi_get_futures_loan_liquidationhistory = sapiGetFuturesLoanLiquidationHistory = Entry('futures/loan/liquidationHistory', 'sapi', 'GET', {'cost': 1})
|
78
|
+
sapi_get_futures_histdatalink = sapiGetFuturesHistDataLink = Entry('futures/histDataLink', 'sapi', 'GET', {'cost': 0.1})
|
83
79
|
sapi_get_rebate_taxquery = sapiGetRebateTaxQuery = Entry('rebate/taxQuery', 'sapi', 'GET', {'cost': 80.004})
|
84
80
|
sapi_get_capital_config_getall = sapiGetCapitalConfigGetall = Entry('capital/config/getall', 'sapi', 'GET', {'cost': 1})
|
85
81
|
sapi_get_capital_deposit_address = sapiGetCapitalDepositAddress = Entry('capital/deposit/address', 'sapi', 'GET', {'cost': 1})
|
@@ -443,6 +439,7 @@ class ImplicitAPI:
|
|
443
439
|
fapipublic_get_markpriceklines = fapiPublicGetMarkPriceKlines = Entry('markPriceKlines', 'fapiPublic', 'GET', {'cost': 1, 'byLimit': [[99, 1], [499, 2], [1000, 5], [10000, 10]]})
|
444
440
|
fapipublic_get_indexpriceklines = fapiPublicGetIndexPriceKlines = Entry('indexPriceKlines', 'fapiPublic', 'GET', {'cost': 1, 'byLimit': [[99, 1], [499, 2], [1000, 5], [10000, 10]]})
|
445
441
|
fapipublic_get_fundingrate = fapiPublicGetFundingRate = Entry('fundingRate', 'fapiPublic', 'GET', {'cost': 1})
|
442
|
+
fapipublic_get_fundinginfo = fapiPublicGetFundingInfo = Entry('fundingInfo', 'fapiPublic', 'GET', {'cost': 1})
|
446
443
|
fapipublic_get_premiumindex = fapiPublicGetPremiumIndex = Entry('premiumIndex', 'fapiPublic', 'GET', {'cost': 1})
|
447
444
|
fapipublic_get_ticker_24hr = fapiPublicGetTicker24hr = Entry('ticker/24hr', 'fapiPublic', 'GET', {'cost': 1, 'noSymbol': 40})
|
448
445
|
fapipublic_get_ticker_price = fapiPublicGetTickerPrice = Entry('ticker/price', 'fapiPublic', 'GET', {'cost': 1, 'noSymbol': 2})
|
ccxt/abstract/binanceus.py
CHANGED
@@ -75,11 +75,7 @@ class ImplicitAPI:
|
|
75
75
|
sapi_get_fiat_orders = sapiGetFiatOrders = Entry('fiat/orders', 'sapi', 'GET', {'cost': 600.03})
|
76
76
|
sapi_get_fiat_payments = sapiGetFiatPayments = Entry('fiat/payments', 'sapi', 'GET', {'cost': 0.1})
|
77
77
|
sapi_get_futures_transfer = sapiGetFuturesTransfer = Entry('futures/transfer', 'sapi', 'GET', {'cost': 1})
|
78
|
-
|
79
|
-
sapi_get_futures_loan_repay_history = sapiGetFuturesLoanRepayHistory = Entry('futures/loan/repay/history', 'sapi', 'GET', {'cost': 1})
|
80
|
-
sapi_get_futures_loan_wallet = sapiGetFuturesLoanWallet = Entry('futures/loan/wallet', 'sapi', 'GET', {'cost': 1})
|
81
|
-
sapi_get_futures_loan_adjustcollateral_history = sapiGetFuturesLoanAdjustCollateralHistory = Entry('futures/loan/adjustCollateral/history', 'sapi', 'GET', {'cost': 1})
|
82
|
-
sapi_get_futures_loan_liquidationhistory = sapiGetFuturesLoanLiquidationHistory = Entry('futures/loan/liquidationHistory', 'sapi', 'GET', {'cost': 1})
|
78
|
+
sapi_get_futures_histdatalink = sapiGetFuturesHistDataLink = Entry('futures/histDataLink', 'sapi', 'GET', {'cost': 0.1})
|
83
79
|
sapi_get_rebate_taxquery = sapiGetRebateTaxQuery = Entry('rebate/taxQuery', 'sapi', 'GET', {'cost': 80.004})
|
84
80
|
sapi_get_capital_config_getall = sapiGetCapitalConfigGetall = Entry('capital/config/getall', 'sapi', 'GET', {'cost': 1})
|
85
81
|
sapi_get_capital_deposit_address = sapiGetCapitalDepositAddress = Entry('capital/deposit/address', 'sapi', 'GET', {'cost': 1})
|
@@ -443,6 +439,7 @@ class ImplicitAPI:
|
|
443
439
|
fapipublic_get_markpriceklines = fapiPublicGetMarkPriceKlines = Entry('markPriceKlines', 'fapiPublic', 'GET', {'cost': 1, 'byLimit': [[99, 1], [499, 2], [1000, 5], [10000, 10]]})
|
444
440
|
fapipublic_get_indexpriceklines = fapiPublicGetIndexPriceKlines = Entry('indexPriceKlines', 'fapiPublic', 'GET', {'cost': 1, 'byLimit': [[99, 1], [499, 2], [1000, 5], [10000, 10]]})
|
445
441
|
fapipublic_get_fundingrate = fapiPublicGetFundingRate = Entry('fundingRate', 'fapiPublic', 'GET', {'cost': 1})
|
442
|
+
fapipublic_get_fundinginfo = fapiPublicGetFundingInfo = Entry('fundingInfo', 'fapiPublic', 'GET', {'cost': 1})
|
446
443
|
fapipublic_get_premiumindex = fapiPublicGetPremiumIndex = Entry('premiumIndex', 'fapiPublic', 'GET', {'cost': 1})
|
447
444
|
fapipublic_get_ticker_24hr = fapiPublicGetTicker24hr = Entry('ticker/24hr', 'fapiPublic', 'GET', {'cost': 1, 'noSymbol': 40})
|
448
445
|
fapipublic_get_ticker_price = fapiPublicGetTickerPrice = Entry('ticker/price', 'fapiPublic', 'GET', {'cost': 1, 'noSymbol': 2})
|
ccxt/abstract/binanceusdm.py
CHANGED
@@ -75,11 +75,7 @@ class ImplicitAPI:
|
|
75
75
|
sapi_get_fiat_orders = sapiGetFiatOrders = Entry('fiat/orders', 'sapi', 'GET', {'cost': 600.03})
|
76
76
|
sapi_get_fiat_payments = sapiGetFiatPayments = Entry('fiat/payments', 'sapi', 'GET', {'cost': 0.1})
|
77
77
|
sapi_get_futures_transfer = sapiGetFuturesTransfer = Entry('futures/transfer', 'sapi', 'GET', {'cost': 1})
|
78
|
-
|
79
|
-
sapi_get_futures_loan_repay_history = sapiGetFuturesLoanRepayHistory = Entry('futures/loan/repay/history', 'sapi', 'GET', {'cost': 1})
|
80
|
-
sapi_get_futures_loan_wallet = sapiGetFuturesLoanWallet = Entry('futures/loan/wallet', 'sapi', 'GET', {'cost': 1})
|
81
|
-
sapi_get_futures_loan_adjustcollateral_history = sapiGetFuturesLoanAdjustCollateralHistory = Entry('futures/loan/adjustCollateral/history', 'sapi', 'GET', {'cost': 1})
|
82
|
-
sapi_get_futures_loan_liquidationhistory = sapiGetFuturesLoanLiquidationHistory = Entry('futures/loan/liquidationHistory', 'sapi', 'GET', {'cost': 1})
|
78
|
+
sapi_get_futures_histdatalink = sapiGetFuturesHistDataLink = Entry('futures/histDataLink', 'sapi', 'GET', {'cost': 0.1})
|
83
79
|
sapi_get_rebate_taxquery = sapiGetRebateTaxQuery = Entry('rebate/taxQuery', 'sapi', 'GET', {'cost': 80.004})
|
84
80
|
sapi_get_capital_config_getall = sapiGetCapitalConfigGetall = Entry('capital/config/getall', 'sapi', 'GET', {'cost': 1})
|
85
81
|
sapi_get_capital_deposit_address = sapiGetCapitalDepositAddress = Entry('capital/deposit/address', 'sapi', 'GET', {'cost': 1})
|
@@ -443,6 +439,7 @@ class ImplicitAPI:
|
|
443
439
|
fapipublic_get_markpriceklines = fapiPublicGetMarkPriceKlines = Entry('markPriceKlines', 'fapiPublic', 'GET', {'cost': 1, 'byLimit': [[99, 1], [499, 2], [1000, 5], [10000, 10]]})
|
444
440
|
fapipublic_get_indexpriceklines = fapiPublicGetIndexPriceKlines = Entry('indexPriceKlines', 'fapiPublic', 'GET', {'cost': 1, 'byLimit': [[99, 1], [499, 2], [1000, 5], [10000, 10]]})
|
445
441
|
fapipublic_get_fundingrate = fapiPublicGetFundingRate = Entry('fundingRate', 'fapiPublic', 'GET', {'cost': 1})
|
442
|
+
fapipublic_get_fundinginfo = fapiPublicGetFundingInfo = Entry('fundingInfo', 'fapiPublic', 'GET', {'cost': 1})
|
446
443
|
fapipublic_get_premiumindex = fapiPublicGetPremiumIndex = Entry('premiumIndex', 'fapiPublic', 'GET', {'cost': 1})
|
447
444
|
fapipublic_get_ticker_24hr = fapiPublicGetTicker24hr = Entry('ticker/24hr', 'fapiPublic', 'GET', {'cost': 1, 'noSymbol': 40})
|
448
445
|
fapipublic_get_ticker_price = fapiPublicGetTickerPrice = Entry('ticker/price', 'fapiPublic', 'GET', {'cost': 1, 'noSymbol': 2})
|
ccxt/async_support/__init__.py
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
# -----------------------------------------------------------------------------
|
4
4
|
|
5
|
-
__version__ = '4.0.
|
5
|
+
__version__ = '4.0.109'
|
6
6
|
|
7
7
|
# -----------------------------------------------------------------------------
|
8
8
|
|
@@ -1126,11 +1126,11 @@ class Exchange(BaseExchange):
|
|
1126
1126
|
entry['amount'] = self.safe_number(entry, 'amount')
|
1127
1127
|
entry['price'] = self.safe_number(entry, 'price')
|
1128
1128
|
entry['cost'] = self.safe_number(entry, 'cost')
|
1129
|
-
|
1130
|
-
|
1131
|
-
if 'rate' in
|
1132
|
-
|
1133
|
-
entry['fee'] =
|
1129
|
+
tradeFee = self.safe_value(entry, 'fee', {})
|
1130
|
+
tradeFee['cost'] = self.safe_number(tradeFee, 'cost')
|
1131
|
+
if 'rate' in tradeFee:
|
1132
|
+
tradeFee['rate'] = self.safe_number(tradeFee, 'rate')
|
1133
|
+
entry['fee'] = tradeFee
|
1134
1134
|
timeInForce = self.safe_string(order, 'timeInForce')
|
1135
1135
|
postOnly = self.safe_value(order, 'postOnly')
|
1136
1136
|
# timeInForceHandling
|
@@ -2043,9 +2043,9 @@ class Exchange(BaseExchange):
|
|
2043
2043
|
raise ArgumentsRequired(self.id + ' safeMarket() requires a fourth argument for ' + marketId + ' to disambiguate between different markets with the same market id')
|
2044
2044
|
inferredMarketType = market['type'] if (marketType is None) else marketType
|
2045
2045
|
for i in range(0, len(markets)):
|
2046
|
-
|
2047
|
-
if
|
2048
|
-
return
|
2046
|
+
currentMarket = markets[i]
|
2047
|
+
if currentMarket[inferredMarketType]:
|
2048
|
+
return currentMarket
|
2049
2049
|
elif delimiter is not None:
|
2050
2050
|
parts = marketId.split(delimiter)
|
2051
2051
|
partsLength = len(parts)
|
ccxt/async_support/binance.py
CHANGED
@@ -294,11 +294,7 @@ class binance(Exchange, ImplicitAPI):
|
|
294
294
|
'fiat/orders': 600.03, # Weight(UID): 90000 => cost = 0.006667 * 90000 = 600.03
|
295
295
|
'fiat/payments': 0.1,
|
296
296
|
'futures/transfer': 1,
|
297
|
-
'futures/
|
298
|
-
'futures/loan/repay/history': 1,
|
299
|
-
'futures/loan/wallet': 1,
|
300
|
-
'futures/loan/adjustCollateral/history': 1,
|
301
|
-
'futures/loan/liquidationHistory': 1,
|
297
|
+
'futures/histDataLink': 0.1, # Weight(IP): 1 => cost = 0.1 * 1 = 0.1
|
302
298
|
'rebate/taxQuery': 80.004, # Weight(UID): 12000 => cost = 0.006667 * 12000 = 80.004
|
303
299
|
# https://binance-docs.github.io/apidocs/spot/en/#withdraw-sapi
|
304
300
|
'capital/config/getall': 1, # get networks for withdrawing USDT ERC20 vs USDT Omni
|
@@ -742,6 +738,7 @@ class binance(Exchange, ImplicitAPI):
|
|
742
738
|
'markPriceKlines': {'cost': 1, 'byLimit': [[99, 1], [499, 2], [1000, 5], [10000, 10]]},
|
743
739
|
'indexPriceKlines': {'cost': 1, 'byLimit': [[99, 1], [499, 2], [1000, 5], [10000, 10]]},
|
744
740
|
'fundingRate': 1,
|
741
|
+
'fundingInfo': 1,
|
745
742
|
'premiumIndex': 1,
|
746
743
|
'ticker/24hr': {'cost': 1, 'noSymbol': 40},
|
747
744
|
'ticker/price': {'cost': 1, 'noSymbol': 2},
|
@@ -7725,9 +7722,9 @@ class binance(Exchange, ImplicitAPI):
|
|
7725
7722
|
numElements = len(response)
|
7726
7723
|
if numElements > 0:
|
7727
7724
|
firstElement = response[0]
|
7728
|
-
|
7729
|
-
if
|
7730
|
-
self.throw_exactly_matched_exception(self.exceptions['exact'],
|
7725
|
+
errorCode = self.safe_string(firstElement, 'code')
|
7726
|
+
if errorCode is not None:
|
7727
|
+
self.throw_exactly_matched_exception(self.exceptions['exact'], errorCode, self.id + ' ' + body)
|
7731
7728
|
return None
|
7732
7729
|
|
7733
7730
|
def calculate_rate_limiter_cost(self, api, method, path, params, config={}):
|
ccxt/async_support/bitfinex2.py
CHANGED
@@ -2469,8 +2469,6 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
2469
2469
|
return None
|
2470
2470
|
elif type.find('fee') >= 0 or type.find('charged') >= 0:
|
2471
2471
|
return 'fee'
|
2472
|
-
elif type.find('exchange') >= 0 or type.find('position') >= 0:
|
2473
|
-
return 'trade'
|
2474
2472
|
elif type.find('rebate') >= 0:
|
2475
2473
|
return 'rebate'
|
2476
2474
|
elif type.find('deposit') >= 0 or type.find('withdrawal') >= 0:
|
@@ -2479,6 +2477,8 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
2479
2477
|
return 'transfer'
|
2480
2478
|
elif type.find('payment') >= 0:
|
2481
2479
|
return 'payout'
|
2480
|
+
elif type.find('exchange') >= 0 or type.find('position') >= 0:
|
2481
|
+
return 'trade'
|
2482
2482
|
else:
|
2483
2483
|
return type
|
2484
2484
|
|
ccxt/async_support/bitflyer.py
CHANGED
@@ -151,6 +151,7 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
151
151
|
async def fetch_markets(self, params={}):
|
152
152
|
"""
|
153
153
|
retrieves data on all markets for bitflyer
|
154
|
+
see https://lightning.bitflyer.com/docs?lang=en#market-list
|
154
155
|
:param dict [params]: extra parameters specific to the exchange api endpoint
|
155
156
|
:returns dict[]: an array of objects representing market data
|
156
157
|
"""
|
@@ -307,6 +308,7 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
307
308
|
async def fetch_balance(self, params={}):
|
308
309
|
"""
|
309
310
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
311
|
+
see https://lightning.bitflyer.com/docs?lang=en#get-account-asset-balance
|
310
312
|
:param dict [params]: extra parameters specific to the bitflyer api endpoint
|
311
313
|
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
312
314
|
"""
|
@@ -336,6 +338,7 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
336
338
|
async def fetch_order_book(self, symbol: str, limit: Optional[int] = None, params={}):
|
337
339
|
"""
|
338
340
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
341
|
+
see https://lightning.bitflyer.com/docs?lang=en#order-book
|
339
342
|
:param str symbol: unified symbol of the market to fetch the order book for
|
340
343
|
:param int [limit]: the maximum amount of order book entries to return
|
341
344
|
:param dict [params]: extra parameters specific to the bitflyer api endpoint
|
@@ -379,6 +382,7 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
379
382
|
async def fetch_ticker(self, symbol: str, params={}):
|
380
383
|
"""
|
381
384
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
385
|
+
see https://lightning.bitflyer.com/docs?lang=en#ticker
|
382
386
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
383
387
|
:param dict [params]: extra parameters specific to the bitflyer api endpoint
|
384
388
|
:returns dict: a `ticker structure <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
|
@@ -453,6 +457,7 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
453
457
|
async def fetch_trades(self, symbol: str, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
454
458
|
"""
|
455
459
|
get the list of most recent trades for a particular symbol
|
460
|
+
see https://lightning.bitflyer.com/docs?lang=en#list-executions
|
456
461
|
:param str symbol: unified symbol of the market to fetch trades for
|
457
462
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
458
463
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -485,6 +490,7 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
485
490
|
async def fetch_trading_fee(self, symbol: str, params={}):
|
486
491
|
"""
|
487
492
|
fetch the trading fees for a market
|
493
|
+
see https://lightning.bitflyer.com/docs?lang=en#get-trading-commission
|
488
494
|
:param str symbol: unified market symbol
|
489
495
|
:param dict [params]: extra parameters specific to the bitflyer api endpoint
|
490
496
|
:returns dict: a `fee structure <https://github.com/ccxt/ccxt/wiki/Manual#fee-structure>`
|
@@ -511,6 +517,7 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
511
517
|
async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount, price=None, params={}):
|
512
518
|
"""
|
513
519
|
create a trade order
|
520
|
+
see https://lightning.bitflyer.com/docs?lang=en#send-a-new-order
|
514
521
|
:param str symbol: unified symbol of the market to create an order in
|
515
522
|
:param str type: 'market' or 'limit'
|
516
523
|
:param str side: 'buy' or 'sell'
|
@@ -538,6 +545,7 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
538
545
|
async def cancel_order(self, id: str, symbol: Optional[str] = None, params={}):
|
539
546
|
"""
|
540
547
|
cancels an open order
|
548
|
+
see https://lightning.bitflyer.com/docs?lang=en#cancel-order
|
541
549
|
:param str id: order id
|
542
550
|
:param str symbol: unified symbol of the market the order was made in
|
543
551
|
:param dict [params]: extra parameters specific to the bitflyer api endpoint
|
@@ -610,6 +618,7 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
610
618
|
async def fetch_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit=100, params={}):
|
611
619
|
"""
|
612
620
|
fetches information on multiple orders made by the user
|
621
|
+
see https://lightning.bitflyer.com/docs?lang=en#list-orders
|
613
622
|
:param str symbol: unified market symbol of the market orders were made in
|
614
623
|
:param int [since]: the earliest time in ms to fetch orders for
|
615
624
|
:param int [limit]: the maximum number of orde structures to retrieve
|
@@ -633,6 +642,7 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
633
642
|
async def fetch_open_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit=100, params={}):
|
634
643
|
"""
|
635
644
|
fetch all unfilled currently open orders
|
645
|
+
see https://lightning.bitflyer.com/docs?lang=en#list-orders
|
636
646
|
:param str symbol: unified market symbol
|
637
647
|
:param int [since]: the earliest time in ms to fetch open orders for
|
638
648
|
:param int [limit]: the maximum number of open orders structures to retrieve
|
@@ -647,6 +657,7 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
647
657
|
async def fetch_closed_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit=100, params={}):
|
648
658
|
"""
|
649
659
|
fetches information on multiple closed orders made by the user
|
660
|
+
see https://lightning.bitflyer.com/docs?lang=en#list-orders
|
650
661
|
:param str symbol: unified market symbol of the market orders were made in
|
651
662
|
:param int [since]: the earliest time in ms to fetch orders for
|
652
663
|
:param int [limit]: the maximum number of orde structures to retrieve
|
@@ -661,6 +672,7 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
661
672
|
async def fetch_order(self, id: str, symbol: Optional[str] = None, params={}):
|
662
673
|
"""
|
663
674
|
fetches information on an order made by the user
|
675
|
+
see https://lightning.bitflyer.com/docs?lang=en#list-orders
|
664
676
|
:param str symbol: unified symbol of the market the order was made in
|
665
677
|
:param dict [params]: extra parameters specific to the bitflyer api endpoint
|
666
678
|
:returns dict: An `order structure <https://github.com/ccxt/ccxt/wiki/Manual#order-structure>`
|
@@ -676,6 +688,7 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
676
688
|
async def fetch_my_trades(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
677
689
|
"""
|
678
690
|
fetch all trades made by the user
|
691
|
+
see https://lightning.bitflyer.com/docs?lang=en#list-executions
|
679
692
|
:param str symbol: unified market symbol
|
680
693
|
:param int [since]: the earliest time in ms to fetch trades for
|
681
694
|
:param int [limit]: the maximum number of trades structures to retrieve
|
@@ -711,6 +724,7 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
711
724
|
async def fetch_positions(self, symbols: Optional[List[str]] = None, params={}):
|
712
725
|
"""
|
713
726
|
fetch all open positions
|
727
|
+
see https://lightning.bitflyer.com/docs?lang=en#get-open-interest-summary
|
714
728
|
:param str[] symbols: list of unified market symbols
|
715
729
|
:param dict [params]: extra parameters specific to the bitflyer api endpoint
|
716
730
|
:returns dict[]: a list of `position structure <https://github.com/ccxt/ccxt/wiki/Manual#position-structure>`
|
@@ -745,6 +759,7 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
745
759
|
async def withdraw(self, code: str, amount, address, tag=None, params={}):
|
746
760
|
"""
|
747
761
|
make a withdrawal
|
762
|
+
see https://lightning.bitflyer.com/docs?lang=en#withdrawing-funds
|
748
763
|
:param str code: unified currency code
|
749
764
|
:param float amount: the amount to withdraw
|
750
765
|
:param str address: the address to withdraw to
|
@@ -773,6 +788,7 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
773
788
|
async def fetch_deposits(self, code: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
774
789
|
"""
|
775
790
|
fetch all deposits made to an account
|
791
|
+
see https://lightning.bitflyer.com/docs?lang=en#get-crypto-assets-deposit-history
|
776
792
|
:param str code: unified currency code
|
777
793
|
:param int [since]: the earliest time in ms to fetch deposits for
|
778
794
|
:param int [limit]: the maximum number of deposits structures to retrieve
|
@@ -806,6 +822,7 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
806
822
|
async def fetch_withdrawals(self, code: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
807
823
|
"""
|
808
824
|
fetch all withdrawals made from an account
|
825
|
+
see https://lightning.bitflyer.com/docs?lang=en#get-crypto-assets-transaction-history
|
809
826
|
:param str code: unified currency code
|
810
827
|
:param int [since]: the earliest time in ms to fetch withdrawals for
|
811
828
|
:param int [limit]: the maximum number of withdrawals structures to retrieve
|
ccxt/async_support/bitforex.py
CHANGED
@@ -165,6 +165,7 @@ class bitforex(Exchange, ImplicitAPI):
|
|
165
165
|
async def fetch_markets(self, params={}):
|
166
166
|
"""
|
167
167
|
retrieves data on all markets for bitforex
|
168
|
+
see https://apidoc.bitforex.com/#exchange-information
|
168
169
|
:param dict [params]: extra parameters specific to the exchange api endpoint
|
169
170
|
:returns dict[]: an array of objects representing market data
|
170
171
|
"""
|
@@ -314,6 +315,7 @@ class bitforex(Exchange, ImplicitAPI):
|
|
314
315
|
async def fetch_trades(self, symbol: str, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
315
316
|
"""
|
316
317
|
get the list of most recent trades for a particular symbol
|
318
|
+
see https://apidoc.bitforex.com/#recent-trades-list
|
317
319
|
:param str symbol: unified symbol of the market to fetch trades for
|
318
320
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
319
321
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -417,6 +419,7 @@ class bitforex(Exchange, ImplicitAPI):
|
|
417
419
|
async def fetch_balance(self, params={}):
|
418
420
|
"""
|
419
421
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
422
|
+
see https://apidoc.bitforex.com/#user-all-asset-information-user_data
|
420
423
|
:param dict [params]: extra parameters specific to the bitforex api endpoint
|
421
424
|
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
422
425
|
"""
|
@@ -464,6 +467,7 @@ class bitforex(Exchange, ImplicitAPI):
|
|
464
467
|
async def fetch_ticker(self, symbol: str, params={}):
|
465
468
|
"""
|
466
469
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
470
|
+
see https://apidoc.bitforex.com/#exchange-information
|
467
471
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
468
472
|
:param dict [params]: extra parameters specific to the bitforex api endpoint
|
469
473
|
:returns dict: a `ticker structure <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
|
@@ -516,6 +520,7 @@ class bitforex(Exchange, ImplicitAPI):
|
|
516
520
|
async def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
517
521
|
"""
|
518
522
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
523
|
+
see https://apidoc.bitforex.com/#kline
|
519
524
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
520
525
|
:param str timeframe: the length of time each candle represents
|
521
526
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -549,6 +554,7 @@ class bitforex(Exchange, ImplicitAPI):
|
|
549
554
|
async def fetch_order_book(self, symbol: str, limit: Optional[int] = None, params={}):
|
550
555
|
"""
|
551
556
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
557
|
+
see https://apidoc.bitforex.com/#order-book
|
552
558
|
:param str symbol: unified symbol of the market to fetch the order book for
|
553
559
|
:param int [limit]: the maximum amount of order book entries to return
|
554
560
|
:param dict [params]: extra parameters specific to the bitforex api endpoint
|
@@ -631,6 +637,7 @@ class bitforex(Exchange, ImplicitAPI):
|
|
631
637
|
async def fetch_order(self, id: str, symbol: Optional[str] = None, params={}):
|
632
638
|
"""
|
633
639
|
fetches information on an order made by the user
|
640
|
+
* @see
|
634
641
|
:param str symbol: unified symbol of the market the order was made in
|
635
642
|
:param dict [params]: extra parameters specific to the bitforex api endpoint
|
636
643
|
:returns dict: An `order structure <https://github.com/ccxt/ccxt/wiki/Manual#order-structure>`
|
@@ -688,6 +695,7 @@ class bitforex(Exchange, ImplicitAPI):
|
|
688
695
|
async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount, price=None, params={}):
|
689
696
|
"""
|
690
697
|
create a trade order
|
698
|
+
see https://apidoc.bitforex.com/#new-order-trade
|
691
699
|
:param str symbol: unified symbol of the market to create an order in
|
692
700
|
:param str type: 'market' or 'limit'
|
693
701
|
:param str side: 'buy' or 'sell'
|
@@ -719,6 +727,7 @@ class bitforex(Exchange, ImplicitAPI):
|
|
719
727
|
async def cancel_order(self, id: str, symbol: Optional[str] = None, params={}):
|
720
728
|
"""
|
721
729
|
cancels an open order
|
730
|
+
see https://apidoc.bitforex.com/#cancel-order-trade
|
722
731
|
:param str id: order id
|
723
732
|
:param str symbol: unified symbol of the market the order was made in
|
724
733
|
:param dict [params]: extra parameters specific to the bitforex api endpoint
|