ccxt 4.0.73 → 4.0.75
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.
- package/README.md +11 -11
- package/dist/ccxt.browser.js +2058 -1943
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +9 -9
- package/dist/cjs/src/alpaca.js +6 -6
- package/dist/cjs/src/ascendex.js +22 -22
- package/dist/cjs/src/base/Exchange.js +2 -2
- package/dist/cjs/src/bigone.js +17 -17
- package/dist/cjs/src/binance.js +51 -51
- package/dist/cjs/src/bingx.js +25 -26
- package/dist/cjs/src/bit2c.js +10 -10
- package/dist/cjs/src/bitbank.js +11 -11
- package/dist/cjs/src/bitbns.js +12 -12
- package/dist/cjs/src/bitfinex.js +19 -19
- package/dist/cjs/src/bitfinex2.js +25 -25
- package/dist/cjs/src/bitflyer.js +15 -15
- package/dist/cjs/src/bitforex.js +9 -9
- package/dist/cjs/src/bitget.js +34 -34
- package/dist/cjs/src/bithumb.js +9 -9
- package/dist/cjs/src/bitmart.js +42 -29
- package/dist/cjs/src/bitmex.js +19 -19
- package/dist/cjs/src/bitopro.js +18 -18
- package/dist/cjs/src/bitpanda.js +19 -19
- package/dist/cjs/src/bitrue.js +15 -15
- package/dist/cjs/src/bitso.js +19 -19
- package/dist/cjs/src/bitstamp.js +19 -19
- package/dist/cjs/src/bitstamp1.js +6 -6
- package/dist/cjs/src/bittrex.js +24 -24
- package/dist/cjs/src/bitvavo.js +16 -16
- package/dist/cjs/src/bkex.js +17 -17
- package/dist/cjs/src/bl3p.js +6 -6
- package/dist/cjs/src/blockchaincom.js +20 -20
- package/dist/cjs/src/btcalpha.js +13 -13
- package/dist/cjs/src/btcbox.js +8 -8
- package/dist/cjs/src/btcmarkets.js +15 -15
- package/dist/cjs/src/btctradeua.js +6 -6
- package/dist/cjs/src/btcturk.js +9 -9
- package/dist/cjs/src/bybit.js +148 -116
- package/dist/cjs/src/cex.js +12 -12
- package/dist/cjs/src/coinbase.js +20 -20
- package/dist/cjs/src/coinbasepro.js +22 -22
- package/dist/cjs/src/coincheck.js +10 -10
- package/dist/cjs/src/coinex.js +81 -35
- package/dist/cjs/src/coinfalcon.js +14 -14
- package/dist/cjs/src/coinmate.js +12 -12
- package/dist/cjs/src/coinone.js +10 -10
- package/dist/cjs/src/coinsph.js +20 -20
- package/dist/cjs/src/coinspot.js +6 -6
- package/dist/cjs/src/cryptocom.js +24 -24
- package/dist/cjs/src/currencycom.js +18 -18
- package/dist/cjs/src/delta.js +23 -23
- package/dist/cjs/src/deribit.js +27 -27
- package/dist/cjs/src/digifinex.js +27 -27
- package/dist/cjs/src/exmo.js +24 -24
- package/dist/cjs/src/gate.js +34 -34
- package/dist/cjs/src/gemini.js +14 -14
- package/dist/cjs/src/hitbtc.js +30 -30
- package/dist/cjs/src/hollaex.js +20 -20
- package/dist/cjs/src/huobi.js +40 -40
- package/dist/cjs/src/huobijp.js +18 -18
- package/dist/cjs/src/idex.js +17 -17
- package/dist/cjs/src/independentreserve.js +10 -10
- package/dist/cjs/src/indodax.js +12 -12
- package/dist/cjs/src/kraken.js +25 -25
- package/dist/cjs/src/krakenfutures.js +12 -12
- package/dist/cjs/src/kucoin.js +29 -29
- package/dist/cjs/src/kucoinfutures.js +19 -19
- package/dist/cjs/src/kuna.js +10 -10
- package/dist/cjs/src/latoken.js +15 -15
- package/dist/cjs/src/lbank.js +10 -10
- package/dist/cjs/src/lbank2.js +21 -21
- package/dist/cjs/src/luno.js +14 -14
- package/dist/cjs/src/lykke.js +14 -14
- package/dist/cjs/src/mercado.js +10 -10
- package/dist/cjs/src/mexc.js +38 -38
- package/dist/cjs/src/ndax.js +18 -18
- package/dist/cjs/src/novadax.js +18 -18
- package/dist/cjs/src/oceanex.js +14 -14
- package/dist/cjs/src/okcoin.js +19 -19
- package/dist/cjs/src/okx.js +48 -48
- package/dist/cjs/src/paymium.js +9 -9
- package/dist/cjs/src/phemex.js +24 -24
- package/dist/cjs/src/poloniex.js +77 -60
- package/dist/cjs/src/poloniexfutures.js +16 -16
- package/dist/cjs/src/pro/alpaca.js +5 -5
- package/dist/cjs/src/pro/ascendex.js +2 -2
- package/dist/cjs/src/pro/binance.js +10 -10
- package/dist/cjs/src/pro/bitfinex.js +3 -3
- package/dist/cjs/src/pro/bitfinex2.js +4 -4
- package/dist/cjs/src/pro/bitget.js +4 -4
- package/dist/cjs/src/pro/bitmart.js +3 -3
- package/dist/cjs/src/pro/bitmex.js +4 -4
- package/dist/cjs/src/pro/bitopro.js +2 -2
- package/dist/cjs/src/pro/bitrue.js +1 -1
- package/dist/cjs/src/pro/bitstamp.js +2 -2
- package/dist/cjs/src/pro/bittrex.js +4 -4
- package/dist/cjs/src/pro/bitvavo.js +4 -4
- package/dist/cjs/src/pro/bybit.js +12 -11
- package/dist/cjs/src/pro/cex.js +3 -3
- package/dist/cjs/src/pro/coinbasepro.js +5 -5
- package/dist/cjs/src/pro/coinex.js +3 -3
- package/dist/cjs/src/pro/cryptocom.js +7 -7
- package/dist/cjs/src/pro/currencycom.js +2 -2
- package/dist/cjs/src/pro/deribit.js +3 -3
- package/dist/cjs/src/pro/exmo.js +2 -2
- package/dist/cjs/src/pro/gate.js +5 -5
- package/dist/cjs/src/pro/gemini.js +2 -2
- package/dist/cjs/src/pro/hitbtc.js +2 -2
- package/dist/cjs/src/pro/hollaex.js +3 -3
- package/dist/cjs/src/pro/huobi.js +4 -4
- package/dist/cjs/src/pro/huobijp.js +2 -2
- package/dist/cjs/src/pro/idex.js +3 -3
- package/dist/cjs/src/pro/independentreserve.js +1 -1
- package/dist/cjs/src/pro/kraken.js +6 -6
- package/dist/cjs/src/pro/krakenfutures.js +2 -2
- package/dist/cjs/src/pro/kucoin.js +4 -4
- package/dist/cjs/src/pro/kucoinfutures.js +3 -3
- package/dist/cjs/src/pro/luno.js +1 -1
- package/dist/cjs/src/pro/ndax.js +2 -2
- package/dist/cjs/src/pro/okcoin.js +3 -3
- package/dist/cjs/src/pro/okx.js +12 -11
- package/dist/cjs/src/pro/phemex.js +4 -4
- package/dist/cjs/src/pro/poloniex.js +1 -1
- package/dist/cjs/src/pro/upbit.js +2 -2
- package/dist/cjs/src/pro/wazirx.js +3 -3
- package/dist/cjs/src/pro/whitebit.js +4 -4
- package/dist/cjs/src/probit.js +17 -17
- package/dist/cjs/src/tidex.js +11 -11
- package/dist/cjs/src/timex.js +14 -14
- package/dist/cjs/src/tokocrypto.js +16 -16
- package/dist/cjs/src/upbit.js +18 -18
- package/dist/cjs/src/wavesexchange.js +13 -13
- package/dist/cjs/src/wazirx.js +10 -10
- package/dist/cjs/src/whitebit.js +21 -21
- package/dist/cjs/src/woo.js +28 -22
- package/dist/cjs/src/yobit.js +14 -14
- package/dist/cjs/src/zaif.js +8 -8
- package/dist/cjs/src/zonda.js +13 -13
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/bitmart.d.ts +13 -0
- package/js/src/abstract/bybit.d.ts +33 -21
- package/js/src/abstract/woo.d.ts +6 -0
- package/js/src/ace.js +9 -9
- package/js/src/alpaca.js +6 -6
- package/js/src/ascendex.js +22 -22
- package/js/src/base/Exchange.js +2 -2
- package/js/src/bigone.js +17 -17
- package/js/src/binance.js +51 -51
- package/js/src/bingx.js +25 -26
- package/js/src/bit2c.js +10 -10
- package/js/src/bitbank.js +11 -11
- package/js/src/bitbns.js +12 -12
- package/js/src/bitfinex.js +19 -19
- package/js/src/bitfinex2.js +25 -25
- package/js/src/bitflyer.js +15 -15
- package/js/src/bitforex.js +9 -9
- package/js/src/bitget.js +34 -34
- package/js/src/bithumb.js +9 -9
- package/js/src/bitmart.js +42 -29
- package/js/src/bitmex.js +19 -19
- package/js/src/bitopro.js +18 -18
- package/js/src/bitpanda.js +19 -19
- package/js/src/bitrue.js +15 -15
- package/js/src/bitso.js +19 -19
- package/js/src/bitstamp.js +19 -19
- package/js/src/bitstamp1.js +6 -6
- package/js/src/bittrex.js +24 -24
- package/js/src/bitvavo.js +16 -16
- package/js/src/bkex.js +17 -17
- package/js/src/bl3p.js +6 -6
- package/js/src/blockchaincom.js +20 -20
- package/js/src/btcalpha.js +13 -13
- package/js/src/btcbox.js +8 -8
- package/js/src/btcmarkets.js +15 -15
- package/js/src/btctradeua.js +6 -6
- package/js/src/btcturk.js +9 -9
- package/js/src/bybit.js +148 -116
- package/js/src/cex.js +12 -12
- package/js/src/coinbase.js +20 -20
- package/js/src/coinbasepro.js +22 -22
- package/js/src/coincheck.js +10 -10
- package/js/src/coinex.d.ts +1 -0
- package/js/src/coinex.js +81 -35
- package/js/src/coinfalcon.js +14 -14
- package/js/src/coinmate.js +12 -12
- package/js/src/coinone.js +10 -10
- package/js/src/coinsph.js +20 -20
- package/js/src/coinspot.js +6 -6
- package/js/src/cryptocom.js +24 -24
- package/js/src/currencycom.js +18 -18
- package/js/src/delta.js +23 -23
- package/js/src/deribit.js +27 -27
- package/js/src/digifinex.js +27 -27
- package/js/src/exmo.js +24 -24
- package/js/src/gate.js +34 -34
- package/js/src/gemini.js +14 -14
- package/js/src/hitbtc.js +30 -30
- package/js/src/hollaex.js +20 -20
- package/js/src/huobi.js +40 -40
- package/js/src/huobijp.js +18 -18
- package/js/src/idex.js +17 -17
- package/js/src/independentreserve.js +10 -10
- package/js/src/indodax.js +12 -12
- package/js/src/kraken.js +25 -25
- package/js/src/krakenfutures.js +12 -12
- package/js/src/kucoin.js +29 -29
- package/js/src/kucoinfutures.js +19 -19
- package/js/src/kuna.js +10 -10
- package/js/src/latoken.js +15 -15
- package/js/src/lbank.js +10 -10
- package/js/src/lbank2.js +21 -21
- package/js/src/luno.js +14 -14
- package/js/src/lykke.js +14 -14
- package/js/src/mercado.js +10 -10
- package/js/src/mexc.js +38 -38
- package/js/src/ndax.js +18 -18
- package/js/src/novadax.js +18 -18
- package/js/src/oceanex.js +14 -14
- package/js/src/okcoin.js +19 -19
- package/js/src/okx.js +48 -48
- package/js/src/paymium.js +9 -9
- package/js/src/phemex.js +24 -24
- package/js/src/poloniex.js +77 -60
- package/js/src/poloniexfutures.js +16 -16
- package/js/src/pro/alpaca.js +5 -5
- package/js/src/pro/ascendex.js +2 -2
- package/js/src/pro/binance.js +10 -10
- package/js/src/pro/bitfinex.js +3 -3
- package/js/src/pro/bitfinex2.js +4 -4
- package/js/src/pro/bitget.js +4 -4
- package/js/src/pro/bitmart.js +3 -3
- package/js/src/pro/bitmex.js +4 -4
- package/js/src/pro/bitopro.js +2 -2
- package/js/src/pro/bitrue.js +1 -1
- package/js/src/pro/bitstamp.js +2 -2
- package/js/src/pro/bittrex.js +4 -4
- package/js/src/pro/bitvavo.js +4 -4
- package/js/src/pro/bybit.d.ts +1 -1
- package/js/src/pro/bybit.js +12 -11
- package/js/src/pro/cex.js +3 -3
- package/js/src/pro/coinbasepro.js +5 -5
- package/js/src/pro/coinex.js +3 -3
- package/js/src/pro/cryptocom.js +7 -7
- package/js/src/pro/currencycom.js +2 -2
- package/js/src/pro/deribit.js +3 -3
- package/js/src/pro/exmo.js +2 -2
- package/js/src/pro/gate.js +5 -5
- package/js/src/pro/gemini.js +2 -2
- package/js/src/pro/hitbtc.js +2 -2
- package/js/src/pro/hollaex.js +3 -3
- package/js/src/pro/huobi.js +4 -4
- package/js/src/pro/huobijp.js +2 -2
- package/js/src/pro/idex.js +3 -3
- package/js/src/pro/independentreserve.js +1 -1
- package/js/src/pro/kraken.js +6 -6
- package/js/src/pro/krakenfutures.js +2 -2
- package/js/src/pro/kucoin.js +4 -4
- package/js/src/pro/kucoinfutures.js +3 -3
- package/js/src/pro/luno.js +1 -1
- package/js/src/pro/ndax.js +2 -2
- package/js/src/pro/okcoin.js +3 -3
- package/js/src/pro/okx.d.ts +1 -1
- package/js/src/pro/okx.js +12 -11
- package/js/src/pro/phemex.js +4 -4
- package/js/src/pro/poloniex.js +1 -1
- package/js/src/pro/upbit.js +2 -2
- package/js/src/pro/wazirx.js +3 -3
- package/js/src/pro/whitebit.js +4 -4
- package/js/src/probit.js +17 -17
- package/js/src/tidex.js +11 -11
- package/js/src/timex.js +14 -14
- package/js/src/tokocrypto.js +16 -16
- package/js/src/upbit.js +18 -18
- package/js/src/wavesexchange.js +13 -13
- package/js/src/wazirx.js +10 -10
- package/js/src/whitebit.js +21 -21
- package/js/src/woo.js +28 -22
- package/js/src/yobit.js +14 -14
- package/js/src/zaif.js +8 -8
- package/js/src/zonda.js +13 -13
- package/package.json +1 -1
package/js/src/bingx.js
CHANGED
|
@@ -786,10 +786,9 @@ export default class bingx extends Exchange {
|
|
|
786
786
|
}
|
|
787
787
|
const isBuyerMaker = this.safeValue2(trade, 'buyerMaker', 'isBuyerMaker');
|
|
788
788
|
let takeOrMaker = undefined;
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
else if (isBuyerMaker !== undefined) {
|
|
789
|
+
let side = undefined;
|
|
790
|
+
if (isBuyerMaker !== undefined) {
|
|
791
|
+
side = isBuyerMaker ? 'sell' : 'buy';
|
|
793
792
|
takeOrMaker = 'taker';
|
|
794
793
|
}
|
|
795
794
|
const cost = this.safeString(trade, 'quoteQty');
|
|
@@ -804,7 +803,7 @@ export default class bingx extends Exchange {
|
|
|
804
803
|
'symbol': this.safeSymbol(undefined, market, '-', type),
|
|
805
804
|
'order': undefined,
|
|
806
805
|
'type': undefined,
|
|
807
|
-
'side':
|
|
806
|
+
'side': side,
|
|
808
807
|
'takerOrMaker': takeOrMaker,
|
|
809
808
|
'price': this.safeString(trade, 'price'),
|
|
810
809
|
'amount': this.safeString2(trade, 'qty', 'amount'),
|
|
@@ -826,7 +825,7 @@ export default class bingx extends Exchange {
|
|
|
826
825
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
827
826
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
828
827
|
* @param {object} [params] extra parameters specific to the bingx api endpoint
|
|
829
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
828
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
830
829
|
*/
|
|
831
830
|
await this.loadMarkets();
|
|
832
831
|
const market = this.market(symbol);
|
|
@@ -914,7 +913,7 @@ export default class bingx extends Exchange {
|
|
|
914
913
|
* @see https://bingx-api.github.io/docs/#/swapV2/market-api.html#Current%20Funding%20Rate
|
|
915
914
|
* @param {string} symbol unified market symbol
|
|
916
915
|
* @param {object} [params] extra parameters specific to the bingx api endpoint
|
|
917
|
-
* @returns {object} a [funding rate structure]{@link https://
|
|
916
|
+
* @returns {object} a [funding rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure}
|
|
918
917
|
*/
|
|
919
918
|
await this.loadMarkets();
|
|
920
919
|
const market = this.market(symbol);
|
|
@@ -1038,7 +1037,7 @@ export default class bingx extends Exchange {
|
|
|
1038
1037
|
* @see https://bingx-api.github.io/docs/#/swapV2/market-api.html#Get%20Swap%20Open%20Positions
|
|
1039
1038
|
* @param {string} symbol Unified CCXT market symbol
|
|
1040
1039
|
* @param {object} [params] exchange specific parameters
|
|
1041
|
-
* @returns {object} an open interest structure{@link https://
|
|
1040
|
+
* @returns {object} an open interest structure{@link https://github.com/ccxt/ccxt/wiki/Manual#interest-history-structure}
|
|
1042
1041
|
*/
|
|
1043
1042
|
await this.loadMarkets();
|
|
1044
1043
|
const market = this.market(symbol);
|
|
@@ -1089,7 +1088,7 @@ export default class bingx extends Exchange {
|
|
|
1089
1088
|
* @see https://bingx-api.github.io/docs/#/swapV2/market-api.html#Get%20Ticker
|
|
1090
1089
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
1091
1090
|
* @param {object} [params] extra parameters specific to the bingx api endpoint
|
|
1092
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
1091
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
1093
1092
|
*/
|
|
1094
1093
|
await this.loadMarkets();
|
|
1095
1094
|
const market = this.market(symbol);
|
|
@@ -1131,7 +1130,7 @@ export default class bingx extends Exchange {
|
|
|
1131
1130
|
* @see https://bingx-api.github.io/docs/#/swapV2/market-api.html#Get%20Ticker
|
|
1132
1131
|
* @param {[string]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1133
1132
|
* @param {object} [params] extra parameters specific to the bingx api endpoint
|
|
1134
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
1133
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
1135
1134
|
*/
|
|
1136
1135
|
await this.loadMarkets();
|
|
1137
1136
|
if (symbols !== undefined) {
|
|
@@ -1347,7 +1346,7 @@ export default class bingx extends Exchange {
|
|
|
1347
1346
|
* @param {[string]|undefined} symbols list of unified market symbols
|
|
1348
1347
|
* @param {object} [params] extra parameters specific to the bingx api endpoint
|
|
1349
1348
|
* @param {boolean} [params.standard] whether to fetch standard contract positions
|
|
1350
|
-
* @returns {[object]} a list of [position structure]{@link https://
|
|
1349
|
+
* @returns {[object]} a list of [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
|
|
1351
1350
|
*/
|
|
1352
1351
|
await this.loadMarkets();
|
|
1353
1352
|
symbols = this.marketSymbols(symbols);
|
|
@@ -1463,7 +1462,7 @@ export default class bingx extends Exchange {
|
|
|
1463
1462
|
* @param {object} [params.triggerPrice] triggerPrice at which the attached take profit / stop loss order will be triggered (swap markets only)
|
|
1464
1463
|
* @param {float} [params.stopLossPrice] stop loss trigger price (swap markets only)
|
|
1465
1464
|
* @param {float} [params.takeProfitPrice] take profit trigger price (swap markets only)
|
|
1466
|
-
* @returns {object} an [order structure]{@link https://
|
|
1465
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1467
1466
|
*/
|
|
1468
1467
|
await this.loadMarkets();
|
|
1469
1468
|
const market = this.market(symbol);
|
|
@@ -1755,7 +1754,7 @@ export default class bingx extends Exchange {
|
|
|
1755
1754
|
* @param {string} id order id
|
|
1756
1755
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1757
1756
|
* @param {object} [params] extra parameters specific to the bingx api endpoint
|
|
1758
|
-
* @returns {object} An [order structure]{@link https://
|
|
1757
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1759
1758
|
*/
|
|
1760
1759
|
this.checkRequiredSymbol('cancelOrder', symbol);
|
|
1761
1760
|
await this.loadMarkets();
|
|
@@ -1830,7 +1829,7 @@ export default class bingx extends Exchange {
|
|
|
1830
1829
|
* @see https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Cancel%20All%20Orders
|
|
1831
1830
|
* @param {string} [symbol] unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1832
1831
|
* @param {object} [params] extra parameters specific to the bingx api endpoint
|
|
1833
|
-
* @returns {[object]} a list of [order structures]{@link https://
|
|
1832
|
+
* @returns {[object]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1834
1833
|
*/
|
|
1835
1834
|
this.checkRequiredSymbol('cancelAllOrders', symbol);
|
|
1836
1835
|
await this.loadMarkets();
|
|
@@ -1882,7 +1881,7 @@ export default class bingx extends Exchange {
|
|
|
1882
1881
|
* @param {[string]} ids order ids
|
|
1883
1882
|
* @param {string} symbol unified market symbol, default is undefined
|
|
1884
1883
|
* @param {object} [params] extra parameters specific to the bingx api endpoint
|
|
1885
|
-
* @returns {object} an list of [order structures]{@link https://
|
|
1884
|
+
* @returns {object} an list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1886
1885
|
*/
|
|
1887
1886
|
this.checkRequiredSymbol('cancelOrders', symbol);
|
|
1888
1887
|
await this.loadMarkets();
|
|
@@ -1935,7 +1934,7 @@ export default class bingx extends Exchange {
|
|
|
1935
1934
|
* @see https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Query%20Order
|
|
1936
1935
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1937
1936
|
* @param {object} [params] extra parameters specific to the bingx api endpoint
|
|
1938
|
-
* @returns {object} An [order structure]{@link https://
|
|
1937
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1939
1938
|
*/
|
|
1940
1939
|
this.checkRequiredSymbol('fetchOrders', symbol);
|
|
1941
1940
|
await this.loadMarkets();
|
|
@@ -2018,7 +2017,7 @@ export default class bingx extends Exchange {
|
|
|
2018
2017
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
2019
2018
|
* @param {int} [limit] the maximum number of open order structures to retrieve
|
|
2020
2019
|
* @param {object} [params] extra parameters specific to the bingx api endpoint
|
|
2021
|
-
* @returns {[object]} a list of [order structures]{@link https://
|
|
2020
|
+
* @returns {[object]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2022
2021
|
*/
|
|
2023
2022
|
this.checkRequiredSymbol('fetchOrders', symbol);
|
|
2024
2023
|
await this.loadMarkets();
|
|
@@ -2107,7 +2106,7 @@ export default class bingx extends Exchange {
|
|
|
2107
2106
|
* @param {object} [params] extra parameters specific to the bingx api endpoint
|
|
2108
2107
|
* @param {int} [params.until] the latest time in ms to fetch orders for
|
|
2109
2108
|
* @param {boolean} [params.standard] whether to fetch standard contract orders
|
|
2110
|
-
* @returns {[object]} a list of [order structures]{@link https://
|
|
2109
|
+
* @returns {[object]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2111
2110
|
*/
|
|
2112
2111
|
this.checkRequiredSymbol('fetchClosedOrders', symbol);
|
|
2113
2112
|
await this.loadMarkets();
|
|
@@ -2198,7 +2197,7 @@ export default class bingx extends Exchange {
|
|
|
2198
2197
|
* @param {string} fromAccount account to transfer from
|
|
2199
2198
|
* @param {string} toAccount account to transfer to
|
|
2200
2199
|
* @param {object} [params] extra parameters specific to the bingx api endpoint
|
|
2201
|
-
* @returns {object} a [transfer structure]{@link https://
|
|
2200
|
+
* @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
|
|
2202
2201
|
*/
|
|
2203
2202
|
await this.loadMarkets();
|
|
2204
2203
|
const currency = this.currency(code);
|
|
@@ -2238,7 +2237,7 @@ export default class bingx extends Exchange {
|
|
|
2238
2237
|
* @param {int} [since] the earliest time in ms to fetch transfers for
|
|
2239
2238
|
* @param {int} [limit] the maximum number of transfers structures to retrieve
|
|
2240
2239
|
* @param {object} [params] extra parameters specific to the bingx api endpoint
|
|
2241
|
-
* @returns {[object]} a list of [transfer structures]{@link https://
|
|
2240
|
+
* @returns {[object]} a list of [transfer structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
|
|
2242
2241
|
*/
|
|
2243
2242
|
await this.loadMarkets();
|
|
2244
2243
|
let currency = undefined;
|
|
@@ -2315,7 +2314,7 @@ export default class bingx extends Exchange {
|
|
|
2315
2314
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
2316
2315
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
2317
2316
|
* @param {object} [params] extra parameters specific to the bingx api endpoint
|
|
2318
|
-
* @returns {[object]} a list of [transaction structures]{@link https://
|
|
2317
|
+
* @returns {[object]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
2319
2318
|
*/
|
|
2320
2319
|
await this.loadMarkets();
|
|
2321
2320
|
const request = {};
|
|
@@ -2360,7 +2359,7 @@ export default class bingx extends Exchange {
|
|
|
2360
2359
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
2361
2360
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
2362
2361
|
* @param {object} [params] extra parameters specific to the bingx api endpoint
|
|
2363
|
-
* @returns {[object]} a list of [transaction structures]{@link https://
|
|
2362
|
+
* @returns {[object]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
2364
2363
|
*/
|
|
2365
2364
|
await this.loadMarkets();
|
|
2366
2365
|
const request = {};
|
|
@@ -2532,7 +2531,7 @@ export default class bingx extends Exchange {
|
|
|
2532
2531
|
* @param {string} symbol unified market symbol of the market to set margin in
|
|
2533
2532
|
* @param {float} amount the amount to set the margin to
|
|
2534
2533
|
* @param {object} [params] parameters specific to the bingx api endpoint
|
|
2535
|
-
* @returns {object} A [margin structure]{@link https://
|
|
2534
|
+
* @returns {object} A [margin structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#add-margin-structure}
|
|
2536
2535
|
*/
|
|
2537
2536
|
const type = this.safeInteger(params, 'type'); // 1 increase margin 2 decrease margin
|
|
2538
2537
|
if (type === undefined) {
|
|
@@ -2567,7 +2566,7 @@ export default class bingx extends Exchange {
|
|
|
2567
2566
|
* @see https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Query%20Leverage
|
|
2568
2567
|
* @param {string} symbol unified market symbol
|
|
2569
2568
|
* @param {object} [params] extra parameters specific to the bingx api endpoint
|
|
2570
|
-
* @returns {object} a [leverage structure]{@link https://
|
|
2569
|
+
* @returns {object} a [leverage structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#leverage-structure}
|
|
2571
2570
|
*/
|
|
2572
2571
|
await this.loadMarkets();
|
|
2573
2572
|
const market = this.market(symbol);
|
|
@@ -2631,7 +2630,7 @@ export default class bingx extends Exchange {
|
|
|
2631
2630
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
2632
2631
|
* @param {object} [params] extra parameters specific to the bingx api endpoint
|
|
2633
2632
|
* @param {string} params.trandingUnit COIN (directly represent assets such as BTC and ETH) or CONT (represents the number of contract sheets)
|
|
2634
|
-
* @returns {[object]} a list of [trade structures]{@link https://
|
|
2633
|
+
* @returns {[object]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
2635
2634
|
*/
|
|
2636
2635
|
this.checkRequiredArgument('fetchMyTrades', symbol, 'symbol');
|
|
2637
2636
|
this.checkRequiredArgument('fetchMyTrades', since, 'since');
|
|
@@ -2762,7 +2761,7 @@ export default class bingx extends Exchange {
|
|
|
2762
2761
|
* @param {string} [tag]
|
|
2763
2762
|
* @param {object} [params] extra parameters specific to the bingx api endpoint
|
|
2764
2763
|
* @param {int} [params.walletType] 1 fund account, 2 standard account, 3 perpetual account
|
|
2765
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
2764
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
2766
2765
|
*/
|
|
2767
2766
|
await this.loadMarkets();
|
|
2768
2767
|
const currency = this.currency(code);
|
package/js/src/bit2c.js
CHANGED
|
@@ -264,7 +264,7 @@ export default class bit2c extends Exchange {
|
|
|
264
264
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
265
265
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
266
266
|
* @param {object} [params] extra parameters specific to the bit2c api endpoint
|
|
267
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
267
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
268
268
|
*/
|
|
269
269
|
await this.loadMarkets();
|
|
270
270
|
const market = this.market(symbol);
|
|
@@ -310,7 +310,7 @@ export default class bit2c extends Exchange {
|
|
|
310
310
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
311
311
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
312
312
|
* @param {object} [params] extra parameters specific to the bit2c api endpoint
|
|
313
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
313
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
314
314
|
*/
|
|
315
315
|
await this.loadMarkets();
|
|
316
316
|
const market = this.market(symbol);
|
|
@@ -362,7 +362,7 @@ export default class bit2c extends Exchange {
|
|
|
362
362
|
* @name bit2c#fetchTradingFees
|
|
363
363
|
* @description fetch the trading fees for multiple markets
|
|
364
364
|
* @param {object} [params] extra parameters specific to the bit2c api endpoint
|
|
365
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
365
|
+
* @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
|
|
366
366
|
*/
|
|
367
367
|
await this.loadMarkets();
|
|
368
368
|
const response = await this.privateGetAccountBalance(params);
|
|
@@ -413,9 +413,9 @@ export default class bit2c extends Exchange {
|
|
|
413
413
|
* @param {string} type 'market' or 'limit'
|
|
414
414
|
* @param {string} side 'buy' or 'sell'
|
|
415
415
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
416
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
416
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
417
417
|
* @param {object} [params] extra parameters specific to the bit2c api endpoint
|
|
418
|
-
* @returns {object} an [order structure]{@link https://
|
|
418
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
419
419
|
*/
|
|
420
420
|
await this.loadMarkets();
|
|
421
421
|
let method = 'privatePostOrderAddOrder';
|
|
@@ -445,7 +445,7 @@ export default class bit2c extends Exchange {
|
|
|
445
445
|
* @param {string} id order id
|
|
446
446
|
* @param {string} symbol Not used by bit2c cancelOrder ()
|
|
447
447
|
* @param {object} [params] extra parameters specific to the bit2c api endpoint
|
|
448
|
-
* @returns {object} An [order structure]{@link https://
|
|
448
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
449
449
|
*/
|
|
450
450
|
const request = {
|
|
451
451
|
'id': id,
|
|
@@ -461,7 +461,7 @@ export default class bit2c extends Exchange {
|
|
|
461
461
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
462
462
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
463
463
|
* @param {object} [params] extra parameters specific to the bit2c api endpoint
|
|
464
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
464
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
465
465
|
*/
|
|
466
466
|
if (symbol === undefined) {
|
|
467
467
|
throw new ArgumentsRequired(this.id + ' fetchOpenOrders() requires a symbol argument');
|
|
@@ -484,7 +484,7 @@ export default class bit2c extends Exchange {
|
|
|
484
484
|
* @description fetches information on an order made by the user
|
|
485
485
|
* @param {string} symbol unified market symbol
|
|
486
486
|
* @param {object} [params] extra parameters specific to the bit2c api endpoint
|
|
487
|
-
* @returns {object} An [order structure]{@link https://
|
|
487
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
488
488
|
*/
|
|
489
489
|
await this.loadMarkets();
|
|
490
490
|
const market = this.market(symbol);
|
|
@@ -638,7 +638,7 @@ export default class bit2c extends Exchange {
|
|
|
638
638
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
639
639
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
640
640
|
* @param {object} [params] extra parameters specific to the bit2c api endpoint
|
|
641
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
641
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
642
642
|
*/
|
|
643
643
|
await this.loadMarkets();
|
|
644
644
|
let market = undefined;
|
|
@@ -816,7 +816,7 @@ export default class bit2c extends Exchange {
|
|
|
816
816
|
* @description fetch the deposit address for a currency associated with this account
|
|
817
817
|
* @param {string} code unified currency code
|
|
818
818
|
* @param {object} [params] extra parameters specific to the bit2c api endpoint
|
|
819
|
-
* @returns {object} an [address structure]{@link https://
|
|
819
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
820
820
|
*/
|
|
821
821
|
await this.loadMarkets();
|
|
822
822
|
const currency = this.currency(code);
|
package/js/src/bitbank.js
CHANGED
|
@@ -287,7 +287,7 @@ export default class bitbank extends Exchange {
|
|
|
287
287
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
288
288
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
289
289
|
* @param {object} [params] extra parameters specific to the bitbank api endpoint
|
|
290
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
290
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
291
291
|
*/
|
|
292
292
|
await this.loadMarkets();
|
|
293
293
|
const market = this.market(symbol);
|
|
@@ -306,7 +306,7 @@ export default class bitbank extends Exchange {
|
|
|
306
306
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
307
307
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
308
308
|
* @param {object} [params] extra parameters specific to the bitbank api endpoint
|
|
309
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
309
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
310
310
|
*/
|
|
311
311
|
await this.loadMarkets();
|
|
312
312
|
const market = this.market(symbol);
|
|
@@ -379,7 +379,7 @@ export default class bitbank extends Exchange {
|
|
|
379
379
|
* @name bitbank#fetchTradingFees
|
|
380
380
|
* @description fetch the trading fees for multiple markets
|
|
381
381
|
* @param {object} [params] extra parameters specific to the bitbank api endpoint
|
|
382
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
382
|
+
* @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
|
|
383
383
|
*/
|
|
384
384
|
await this.loadMarkets();
|
|
385
385
|
const response = await this.marketsGetSpotPairs(params);
|
|
@@ -623,9 +623,9 @@ export default class bitbank extends Exchange {
|
|
|
623
623
|
* @param {string} type 'market' or 'limit'
|
|
624
624
|
* @param {string} side 'buy' or 'sell'
|
|
625
625
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
626
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
626
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
627
627
|
* @param {object} [params] extra parameters specific to the bitbank api endpoint
|
|
628
|
-
* @returns {object} an [order structure]{@link https://
|
|
628
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
629
629
|
*/
|
|
630
630
|
await this.loadMarkets();
|
|
631
631
|
const market = this.market(symbol);
|
|
@@ -650,7 +650,7 @@ export default class bitbank extends Exchange {
|
|
|
650
650
|
* @param {string} id order id
|
|
651
651
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
652
652
|
* @param {object} [params] extra parameters specific to the bitbank api endpoint
|
|
653
|
-
* @returns {object} An [order structure]{@link https://
|
|
653
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
654
654
|
*/
|
|
655
655
|
await this.loadMarkets();
|
|
656
656
|
const market = this.market(symbol);
|
|
@@ -669,7 +669,7 @@ export default class bitbank extends Exchange {
|
|
|
669
669
|
* @description fetches information on an order made by the user
|
|
670
670
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
671
671
|
* @param {object} [params] extra parameters specific to the bitbank api endpoint
|
|
672
|
-
* @returns {object} An [order structure]{@link https://
|
|
672
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
673
673
|
*/
|
|
674
674
|
await this.loadMarkets();
|
|
675
675
|
const market = this.market(symbol);
|
|
@@ -690,7 +690,7 @@ export default class bitbank extends Exchange {
|
|
|
690
690
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
691
691
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
692
692
|
* @param {object} [params] extra parameters specific to the bitbank api endpoint
|
|
693
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
693
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
694
694
|
*/
|
|
695
695
|
await this.loadMarkets();
|
|
696
696
|
const market = this.market(symbol);
|
|
@@ -717,7 +717,7 @@ export default class bitbank extends Exchange {
|
|
|
717
717
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
718
718
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
719
719
|
* @param {object} [params] extra parameters specific to the bitbank api endpoint
|
|
720
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
720
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
721
721
|
*/
|
|
722
722
|
await this.loadMarkets();
|
|
723
723
|
const request = {};
|
|
@@ -744,7 +744,7 @@ export default class bitbank extends Exchange {
|
|
|
744
744
|
* @description fetch the deposit address for a currency associated with this account
|
|
745
745
|
* @param {string} code unified currency code
|
|
746
746
|
* @param {object} [params] extra parameters specific to the bitbank api endpoint
|
|
747
|
-
* @returns {object} an [address structure]{@link https://
|
|
747
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
748
748
|
*/
|
|
749
749
|
await this.loadMarkets();
|
|
750
750
|
const currency = this.currency(code);
|
|
@@ -775,7 +775,7 @@ export default class bitbank extends Exchange {
|
|
|
775
775
|
* @param {string} address the address to withdraw to
|
|
776
776
|
* @param {string} tag
|
|
777
777
|
* @param {object} [params] extra parameters specific to the bitbank api endpoint
|
|
778
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
778
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
779
779
|
*/
|
|
780
780
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
781
781
|
if (!('uuid' in params)) {
|
package/js/src/bitbns.js
CHANGED
|
@@ -159,7 +159,7 @@ export default class bitbns extends Exchange {
|
|
|
159
159
|
* @name bitbns#fetchStatus
|
|
160
160
|
* @description the latest known information on the availability of the exchange API
|
|
161
161
|
* @param {object} [params] extra parameters specific to the bitbns api endpoint
|
|
162
|
-
* @returns {object} a [status structure]{@link https://
|
|
162
|
+
* @returns {object} a [status structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#exchange-status-structure}
|
|
163
163
|
*/
|
|
164
164
|
const response = await this.v1GetPlatformStatus(params);
|
|
165
165
|
//
|
|
@@ -291,7 +291,7 @@ export default class bitbns extends Exchange {
|
|
|
291
291
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
292
292
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
293
293
|
* @param {object} [params] extra parameters specific to the bitbns api endpoint
|
|
294
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
294
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
295
295
|
*/
|
|
296
296
|
await this.loadMarkets();
|
|
297
297
|
const market = this.market(symbol);
|
|
@@ -387,7 +387,7 @@ export default class bitbns extends Exchange {
|
|
|
387
387
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
388
388
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
389
389
|
* @param {object} [params] extra parameters specific to the bitbns api endpoint
|
|
390
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
390
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
391
391
|
*/
|
|
392
392
|
await this.loadMarkets();
|
|
393
393
|
const response = await this.wwwGetOrderFetchTickers(params);
|
|
@@ -595,9 +595,9 @@ export default class bitbns extends Exchange {
|
|
|
595
595
|
* @param {string} type 'market' or 'limit'
|
|
596
596
|
* @param {string} side 'buy' or 'sell'
|
|
597
597
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
598
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
598
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
599
599
|
* @param {object} [params] extra parameters specific to the bitbns api endpoint
|
|
600
|
-
* @returns {object} an [order structure]{@link https://
|
|
600
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
601
601
|
*/
|
|
602
602
|
if (type !== 'limit' && type !== 'market') {
|
|
603
603
|
throw new ExchangeError(this.id + ' allows limit and market orders only');
|
|
@@ -646,7 +646,7 @@ export default class bitbns extends Exchange {
|
|
|
646
646
|
* @param {string} id order id
|
|
647
647
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
648
648
|
* @param {object} [params] extra parameters specific to the bitbns api endpoint
|
|
649
|
-
* @returns {object} An [order structure]{@link https://
|
|
649
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
650
650
|
*/
|
|
651
651
|
if (symbol === undefined) {
|
|
652
652
|
throw new ArgumentsRequired(this.id + ' cancelOrder() requires a symbol argument');
|
|
@@ -669,7 +669,7 @@ export default class bitbns extends Exchange {
|
|
|
669
669
|
* @description fetches information on an order made by the user
|
|
670
670
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
671
671
|
* @param {object} [params] extra parameters specific to the bitbns api endpoint
|
|
672
|
-
* @returns {object} An [order structure]{@link https://
|
|
672
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
673
673
|
*/
|
|
674
674
|
if (symbol === undefined) {
|
|
675
675
|
throw new ArgumentsRequired(this.id + ' fetchOrder() requires a symbol argument');
|
|
@@ -719,7 +719,7 @@ export default class bitbns extends Exchange {
|
|
|
719
719
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
720
720
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
721
721
|
* @param {object} [params] extra parameters specific to the bitbns api endpoint
|
|
722
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
722
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
723
723
|
*/
|
|
724
724
|
if (symbol === undefined) {
|
|
725
725
|
throw new ArgumentsRequired(this.id + ' fetchOpenOrders() requires a symbol argument');
|
|
@@ -844,7 +844,7 @@ export default class bitbns extends Exchange {
|
|
|
844
844
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
845
845
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
846
846
|
* @param {object} [params] extra parameters specific to the bitbns api endpoint
|
|
847
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
847
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
848
848
|
*/
|
|
849
849
|
if (symbol === undefined) {
|
|
850
850
|
throw new ArgumentsRequired(this.id + ' fetchMyTrades() requires a symbol argument');
|
|
@@ -942,7 +942,7 @@ export default class bitbns extends Exchange {
|
|
|
942
942
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
943
943
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
944
944
|
* @param {object} [params] extra parameters specific to the bitbns api endpoint
|
|
945
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
945
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
946
946
|
*/
|
|
947
947
|
if (code === undefined) {
|
|
948
948
|
throw new ArgumentsRequired(this.id + ' fetchDeposits() requires a currency code argument');
|
|
@@ -989,7 +989,7 @@ export default class bitbns extends Exchange {
|
|
|
989
989
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
990
990
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
991
991
|
* @param {object} [params] extra parameters specific to the bitbns api endpoint
|
|
992
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
992
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
993
993
|
*/
|
|
994
994
|
if (code === undefined) {
|
|
995
995
|
throw new ArgumentsRequired(this.id + ' fetchWithdrawals() requires a currency code argument');
|
|
@@ -1100,7 +1100,7 @@ export default class bitbns extends Exchange {
|
|
|
1100
1100
|
* @description fetch the deposit address for a currency associated with this account
|
|
1101
1101
|
* @param {string} code unified currency code
|
|
1102
1102
|
* @param {object} [params] extra parameters specific to the bitbns api endpoint
|
|
1103
|
-
* @returns {object} an [address structure]{@link https://
|
|
1103
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1104
1104
|
*/
|
|
1105
1105
|
await this.loadMarkets();
|
|
1106
1106
|
const currency = this.currency(code);
|