Skip to content

Commit

Permalink
float -> number
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosmiei committed Jul 18, 2022
1 parent b6504a3 commit 63ebaf4
Show file tree
Hide file tree
Showing 80 changed files with 818 additions and 818 deletions.
4 changes: 2 additions & 2 deletions js/aax.js
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ module.exports = class aax extends Exchange {
* @description Either adds or reduces margin in an isolated position in order to set the margin to a specific value
* @see https://www.aax.com/apidoc/index.html#modify-isolated-position-margin
* @param {string} symbol unified market symbol of the market to set margin in
* @param {float} amount the amount to set the margin to
* @param {number} amount the amount to set the margin to
* @param {object} params parameters specific to the aax api endpoint
* @returns {object} A [margin structure]{@link https://docs.ccxt.com/en/latest/manual.html#add-margin-structure}
*/
Expand Down Expand Up @@ -1838,7 +1838,7 @@ module.exports = class aax extends Exchange {
* @param {number|undefined} since the earliest time in ms to fetch orders for
* @param {number|undefined} limit the maximum number of orde structures to retrieve
* @param {object} params extra parameters specific to the aax api endpoint
* @returns {[dict]} a list of [order structures]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
* @returns {[object]} a list of [order structures]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
*/
const request = {
'orderStatus': '2', // 1 new, 2 filled, 3 canceled
Expand Down
2 changes: 1 addition & 1 deletion js/ascendex.js
Original file line number Diff line number Diff line change
Expand Up @@ -1776,7 +1776,7 @@ module.exports = class ascendex extends Exchange {
* @param {number|undefined} since the earliest time in ms to fetch orders for
* @param {number|undefined} limit the maximum number of orde structures to retrieve
* @param {object} params extra parameters specific to the ascendex api endpoint
* @returns {[dict]} a list of [order structures]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
* @returns {[object]} a list of [order structures]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
*/
await this.loadMarkets ();
await this.loadAccounts ();
Expand Down
2 changes: 1 addition & 1 deletion js/bibox.js
Original file line number Diff line number Diff line change
Expand Up @@ -1409,7 +1409,7 @@ module.exports = class bibox extends Exchange {
* @param {number|undefined} since the earliest time in ms to fetch orders for
* @param {number|undefined} limit the maximum number of orde structures to retrieve
* @param {object} params extra parameters specific to the bibox api endpoint
* @returns {[dict]} a list of [order structures]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
* @returns {[object]} a list of [order structures]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
*/
if (symbol === undefined) {
throw new ArgumentsRequired (this.id + ' fetchClosedOrders() requires a `symbol` argument');
Expand Down
2 changes: 1 addition & 1 deletion js/bigone.js
Original file line number Diff line number Diff line change
Expand Up @@ -983,7 +983,7 @@ module.exports = class bigone extends Exchange {
* @param {number|undefined} since the earliest time in ms to fetch orders for
* @param {number|undefined} limit the maximum number of orde structures to retrieve
* @param {object} params extra parameters specific to the bigone api endpoint
* @returns {[dict]} a list of [order structures]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
* @returns {[object]} a list of [order structures]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
*/
if (symbol === undefined) {
throw new ArgumentsRequired (this.id + ' fetchOrders() requires a symbol argument');
Expand Down
4 changes: 2 additions & 2 deletions js/binance.js
Original file line number Diff line number Diff line change
Expand Up @@ -6240,7 +6240,7 @@ module.exports = class binance extends Exchange {
* @description repay borrowed margin and interest
* @see https://binance-docs.github.io/apidocs/spot/en/#margin-account-repay-margin
* @param {string} code unified currency code of the currency to repay
* @param {float} amount the amount to repay
* @param {number} amount the amount to repay
* @param {string|undefined} symbol unified market symbol, required for isolated margin
* @param {object} params extra parameters specific to the binance api endpoint
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/en/latest/manual.html#margin-loan-structure}
Expand Down Expand Up @@ -6287,7 +6287,7 @@ module.exports = class binance extends Exchange {
* @description create a loan to borrow margin
* @see https://binance-docs.github.io/apidocs/spot/en/#margin-account-borrow-margin
* @param {string} code unified currency code of the currency to borrow
* @param {float} amount the amount to borrow
* @param {number} amount the amount to borrow
* @param {string|undefined} symbol unified market symbol, required for isolated margin
* @param {object} params extra parameters specific to the binance api endpoint
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/en/latest/manual.html#margin-loan-structure}
Expand Down
2 changes: 1 addition & 1 deletion js/bitfinex.js
Original file line number Diff line number Diff line change
Expand Up @@ -1195,7 +1195,7 @@ module.exports = class bitfinex extends Exchange {
* @param {number|undefined} since the earliest time in ms to fetch orders for
* @param {number|undefined} limit the maximum number of orde structures to retrieve
* @param {object} params extra parameters specific to the bitfinex api endpoint
* @returns {[dict]} a list of [order structures]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
* @returns {[object]} a list of [order structures]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
*/
await this.loadMarkets ();
const request = {};
Expand Down
2 changes: 1 addition & 1 deletion js/bitfinex2.js
Original file line number Diff line number Diff line change
Expand Up @@ -1833,7 +1833,7 @@ module.exports = class bitfinex2 extends Exchange {
* @param {number|undefined} since the earliest time in ms to fetch orders for
* @param {number|undefined} limit the maximum number of orde structures to retrieve
* @param {object} params extra parameters specific to the bitfinex2 api endpoint
* @returns {[dict]} a list of [order structures]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
* @returns {[object]} a list of [order structures]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
*/
// returns the most recent closed or canceled orders up to circa two weeks ago
await this.loadMarkets ();
Expand Down
2 changes: 1 addition & 1 deletion js/bitflyer.js
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ module.exports = class bitflyer extends Exchange {
* @param {number|undefined} since the earliest time in ms to fetch orders for
* @param {number|undefined} limit the maximum number of orde structures to retrieve
* @param {object} params extra parameters specific to the bitflyer api endpoint
* @returns {[dict]} a list of [order structures]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
* @returns {[object]} a list of [order structures]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
*/
if (symbol === undefined) {
throw new ArgumentsRequired (this.id + ' fetchOrders() requires a `symbol` argument');
Expand Down
2 changes: 1 addition & 1 deletion js/bitforex.js
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ module.exports = class bitforex extends Exchange {
* @param {number|undefined} since the earliest time in ms to fetch orders for
* @param {number|undefined} limit the maximum number of orde structures to retrieve
* @param {object} params extra parameters specific to the bitforex api endpoint
* @returns {[dict]} a list of [order structures]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
* @returns {[object]} a list of [order structures]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
*/
await this.loadMarkets ();
const market = this.market (symbol);
Expand Down
2 changes: 1 addition & 1 deletion js/bitget.js
Original file line number Diff line number Diff line change
Expand Up @@ -2281,7 +2281,7 @@ module.exports = class bitget extends Exchange {
* @param {number|undefined} since the earliest time in ms to fetch orders for
* @param {number|undefined} limit the maximum number of orde structures to retrieve
* @param {object} params extra parameters specific to the bitget api endpoint
* @returns {[dict]} a list of [order structures]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
* @returns {[object]} a list of [order structures]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
*/
if (symbol === undefined) {
throw new ArgumentsRequired (this.id + ' fetchClosedOrders() requires a symbol argument');
Expand Down
2 changes: 1 addition & 1 deletion js/bitmex.js
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ module.exports = class bitmex extends Exchange {
* @param {number|undefined} since the earliest time in ms to fetch orders for
* @param {number|undefined} limit the maximum number of orde structures to retrieve
* @param {object} params extra parameters specific to the bitmex api endpoint
* @returns {[dict]} a list of [order structures]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
* @returns {[object]} a list of [order structures]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
*/
await this.loadMarkets ();
let market = undefined;
Expand Down
22 changes: 11 additions & 11 deletions js/bitopro.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ module.exports = class bitopro extends Exchange {
* @name bitopro#fetchMarkets
* @description retrieves data on all markets for bitopro
* @param {object} params extra parameters specific to the exchange api endpoint
* @returns {[dict]} an array of objects representing market data
* @returns {[object]} an array of objects representing market data
*/
const response = await this.publicGetProvisioningTradingPairs ();
const markets = this.safeValue (response, 'data', []);
Expand Down Expand Up @@ -596,7 +596,7 @@ module.exports = class bitopro extends Exchange {
* @param {number|undefined} since timestamp in ms of the earliest trade to fetch
* @param {number|undefined} limit the maximum amount of trades to fetch
* @param {object} params extra parameters specific to the bitopro api endpoint
* @returns {[dict]} a list of [trade structures]{@link https://docs.ccxt.com/en/latest/manual.html?#public-trades}
* @returns {[object]} a list of [trade structures]{@link https://docs.ccxt.com/en/latest/manual.html?#public-trades}
*/
await this.loadMarkets ();
const market = this.market (symbol);
Expand Down Expand Up @@ -975,8 +975,8 @@ module.exports = class bitopro extends Exchange {
* @param {string} symbol unified symbol of the market to create an order in
* @param {string} type 'market' or 'limit'
* @param {string} side 'buy' or 'sell'
* @param {float} amount how much of currency you want to trade in units of base currency
* @param {float|undefined} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
* @param {number} amount how much of currency you want to trade in units of base currency
* @param {number|undefined} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
* @param {object} params extra parameters specific to the bitopro api endpoint
* @returns {object} an [order structure]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
*/
Expand Down Expand Up @@ -1092,7 +1092,7 @@ module.exports = class bitopro extends Exchange {
* @description cancel all open orders
* @param {string|undefined} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
* @param {object} params extra parameters specific to the bitopro api endpoint
* @returns {[dict]} a list of [order structures]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
* @returns {[object]} a list of [order structures]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
*/
await this.loadMarkets ();
const request = {
Expand Down Expand Up @@ -1174,7 +1174,7 @@ module.exports = class bitopro extends Exchange {
* @param {number|undefined} since the earliest time in ms to fetch orders for
* @param {number|undefined} limit the maximum number of orde structures to retrieve
* @param {object} params extra parameters specific to the bitopro api endpoint
* @returns {[dict]} a list of [order structures]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
* @returns {[object]} a list of [order structures]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
*/
if (symbol === undefined) {
throw new ArgumentsRequired (this.id + ' fetchOrders() requires the symbol argument');
Expand Down Expand Up @@ -1244,7 +1244,7 @@ module.exports = class bitopro extends Exchange {
* @param {number|undefined} since the earliest time in ms to fetch orders for
* @param {number|undefined} limit the maximum number of orde structures to retrieve
* @param {object} params extra parameters specific to the bitopro api endpoint
* @returns {[dict]} a list of [order structures]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
* @returns {[object]} a list of [order structures]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
*/
const request = {
'statusKind': 'DONE',
Expand All @@ -1261,7 +1261,7 @@ module.exports = class bitopro extends Exchange {
* @param {number|undefined} since the earliest time in ms to fetch trades for
* @param {number|undefined} limit the maximum number of trades structures to retrieve
* @param {object} params extra parameters specific to the bitopro api endpoint
* @returns {[dict]} a list of [trade structures]{@link https://docs.ccxt.com/en/latest/manual.html#trade-structure}
* @returns {[object]} a list of [trade structures]{@link https://docs.ccxt.com/en/latest/manual.html#trade-structure}
*/
if (symbol === undefined) {
throw new ArgumentsRequired (this.id + ' fetchMyTrades() requires the symbol argument');
Expand Down Expand Up @@ -1397,7 +1397,7 @@ module.exports = class bitopro extends Exchange {
* @param {number|undefined} since the earliest time in ms to fetch deposits for
* @param {number|undefined} limit the maximum number of deposits structures to retrieve
* @param {object} params extra parameters specific to the bitopro api endpoint
* @returns {[dict]} a list of [transaction structures]{@link https://docs.ccxt.com/en/latest/manual.html#transaction-structure}
* @returns {[object]} a list of [transaction structures]{@link https://docs.ccxt.com/en/latest/manual.html#transaction-structure}
*/
if (code === undefined) {
throw new ArgumentsRequired (this.id + ' fetchDeposits() requires the code argument');
Expand Down Expand Up @@ -1449,7 +1449,7 @@ module.exports = class bitopro extends Exchange {
* @param {number|undefined} since the earliest time in ms to fetch withdrawals for
* @param {number|undefined} limit the maximum number of withdrawals structures to retrieve
* @param {object} params extra parameters specific to the bitopro api endpoint
* @returns {[dict]} a list of [transaction structures]{@link https://docs.ccxt.com/en/latest/manual.html#transaction-structure}
* @returns {[object]} a list of [transaction structures]{@link https://docs.ccxt.com/en/latest/manual.html#transaction-structure}
*/
if (code === undefined) {
throw new ArgumentsRequired (this.id + ' fetchWithdrawals() requires the code argument');
Expand Down Expand Up @@ -1537,7 +1537,7 @@ module.exports = class bitopro extends Exchange {
* @name bitopro#withdraw
* @description make a withdrawal
* @param {string} code unified currency code
* @param {float} amount the amount to withdraw
* @param {number} amount the amount to withdraw
* @param {string} address the address to withdraw to
* @param {string|undefined} tag
* @param {object} params extra parameters specific to the bitopro api endpoint
Expand Down
Loading

0 comments on commit 63ebaf4

Please sign in to comment.