Skip to content

Commit

Permalink
fetchOpenOrders docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
samgermain committed Jun 9, 2022
1 parent 93af04e commit 4ee4951
Show file tree
Hide file tree
Showing 96 changed files with 951 additions and 18 deletions.
10 changes: 10 additions & 0 deletions js/aax.js
Original file line number Diff line number Diff line change
Expand Up @@ -1666,6 +1666,16 @@ module.exports = class aax extends Exchange {
}

async fetchOpenOrders (symbol = undefined, since = undefined, limit = undefined, params = {}) {
/**
* @method
* @name aax#fetchOpenOrders
* @description fetch all unfilled currently open orders
* @param {str|undefined} symbol unified market symbol
* @param {int|undefined} since the earliest time in ms to fetch open orders for
* @param {int|undefined} limit the maximum number of open orders structures to retrieve
* @param {dict} 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}
*/
await this.loadMarkets ();
const request = {
// 'pageNum': '1',
Expand Down
10 changes: 10 additions & 0 deletions js/ascendex.js
Original file line number Diff line number Diff line change
Expand Up @@ -1586,6 +1586,16 @@ module.exports = class ascendex extends Exchange {
}

async fetchOpenOrders (symbol = undefined, since = undefined, limit = undefined, params = {}) {
/**
* @method
* @name ascendex#fetchOpenOrders
* @description fetch all unfilled currently open orders
* @param {str|undefined} symbol unified market symbol
* @param {int|undefined} since the earliest time in ms to fetch open orders for
* @param {int|undefined} limit the maximum number of open orders structures to retrieve
* @param {dict} 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}
*/
await this.loadMarkets ();
await this.loadAccounts ();
let market = undefined;
Expand Down
10 changes: 10 additions & 0 deletions js/bibox.js
Original file line number Diff line number Diff line change
Expand Up @@ -1168,6 +1168,16 @@ module.exports = class bibox extends Exchange {
}

async fetchOpenOrders (symbol = undefined, since = undefined, limit = undefined, params = {}) {
/**
* @method
* @name bibox#fetchOpenOrders
* @description fetch all unfilled currently open orders
* @param {str|undefined} symbol unified market symbol
* @param {int|undefined} since the earliest time in ms to fetch open orders for
* @param {int|undefined} limit the maximum number of open orders structures to retrieve
* @param {dict} 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}
*/
await this.loadMarkets ();
let market = undefined;
let pair = undefined;
Expand Down
10 changes: 10 additions & 0 deletions js/bigone.js
Original file line number Diff line number Diff line change
Expand Up @@ -1085,6 +1085,16 @@ module.exports = class bigone extends Exchange {
}

async fetchOpenOrders (symbol = undefined, since = undefined, limit = undefined, params = {}) {
/**
* @method
* @name bigone#fetchOpenOrders
* @description fetch all unfilled currently open orders
* @param {str} symbol unified market symbol
* @param {int|undefined} since the earliest time in ms to fetch open orders for
* @param {int|undefined} limit the maximum number of open orders structures to retrieve
* @param {dict} 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}
*/
const request = {
'state': 'PENDING',
};
Expand Down
10 changes: 10 additions & 0 deletions js/binance.js
Original file line number Diff line number Diff line change
Expand Up @@ -3078,6 +3078,16 @@ module.exports = class binance extends Exchange {
}

async fetchOpenOrders (symbol = undefined, since = undefined, limit = undefined, params = {}) {
/**
* @method
* @name binance#fetchOpenOrders
* @description fetch all unfilled currently open orders
* @param {str|undefined} symbol unified market symbol
* @param {int|undefined} since the earliest time in ms to fetch open orders for
* @param {int|undefined} limit the maximum number of open orders structures to retrieve
* @param {dict} params extra parameters specific to the binance api endpoint
* @returns {[dict]} a list of [order structures]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
*/
await this.loadMarkets ();
let market = undefined;
let query = undefined;
Expand Down
10 changes: 10 additions & 0 deletions js/bit2c.js
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,16 @@ module.exports = class bit2c extends Exchange {
}

async fetchOpenOrders (symbol = undefined, since = undefined, limit = undefined, params = {}) {
/**
* @method
* @name bit2c#fetchOpenOrders
* @description fetch all unfilled currently open orders
* @param {str} symbol unified market symbol
* @param {int|undefined} since the earliest time in ms to fetch open orders for
* @param {int|undefined} limit the maximum number of open orders structures to retrieve
* @param {dict} params extra parameters specific to the bit2c api endpoint
* @returns {[dict]} a list of [order structures]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
*/
if (symbol === undefined) {
throw new ArgumentsRequired (this.id + ' fetchOpenOrders() requires a symbol argument');
}
Expand Down
10 changes: 10 additions & 0 deletions js/bitbank.js
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,16 @@ module.exports = class bitbank extends Exchange {
}

async fetchOpenOrders (symbol = undefined, since = undefined, limit = undefined, params = {}) {
/**
* @method
* @name bitbank#fetchOpenOrders
* @description fetch all unfilled currently open orders
* @param {str|undefined} symbol unified market symbol
* @param {int|undefined} since the earliest time in ms to fetch open orders for
* @param {int|undefined} limit the maximum number of open orders structures to retrieve
* @param {dict} params extra parameters specific to the bitbank api endpoint
* @returns {[dict]} a list of [order structures]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
*/
await this.loadMarkets ();
const market = this.market (symbol);
const request = {
Expand Down
10 changes: 10 additions & 0 deletions js/bitbns.js
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,16 @@ module.exports = class bitbns extends Exchange {
}

async fetchOpenOrders (symbol = undefined, since = undefined, limit = undefined, params = {}) {
/**
* @method
* @name bitbns#fetchOpenOrders
* @description fetch all unfilled currently open orders
* @param {str} symbol unified market symbol
* @param {int|undefined} since the earliest time in ms to fetch open orders for
* @param {int|undefined} limit the maximum number of open orders structures to retrieve
* @param {dict} params extra parameters specific to the bitbns api endpoint
* @returns {[dict]} a list of [order structures]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
*/
if (symbol === undefined) {
throw new ArgumentsRequired (this.id + ' fetchOpenOrders() requires a symbol argument');
}
Expand Down
10 changes: 10 additions & 0 deletions js/bitfinex.js
Original file line number Diff line number Diff line change
Expand Up @@ -1158,6 +1158,16 @@ module.exports = class bitfinex extends Exchange {
}

async fetchOpenOrders (symbol = undefined, since = undefined, limit = undefined, params = {}) {
/**
* @method
* @name bitfinex#fetchOpenOrders
* @description fetch all unfilled currently open orders
* @param {str|undefined} symbol unified market symbol
* @param {int|undefined} since the earliest time in ms to fetch open orders for
* @param {int|undefined} limit the maximum number of open orders structures to retrieve
* @param {dict} 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}
*/
await this.loadMarkets ();
if (symbol !== undefined) {
if (!(symbol in this.markets)) {
Expand Down
10 changes: 10 additions & 0 deletions js/bitfinex2.js
Original file line number Diff line number Diff line change
Expand Up @@ -1596,6 +1596,16 @@ module.exports = class bitfinex2 extends bitfinex {
}

async fetchOpenOrders (symbol = undefined, since = undefined, limit = undefined, params = {}) {
/**
* @method
* @name bitfinex2#fetchOpenOrders
* @description fetch all unfilled currently open orders
* @param {str|undefined} symbol unified market symbol
* @param {int|undefined} since the earliest time in ms to fetch open orders for
* @param {int|undefined} limit the maximum number of open orders structures to retrieve
* @param {dict} 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}
*/
await this.loadMarkets ();
const request = {};
let market = undefined;
Expand Down
10 changes: 10 additions & 0 deletions js/bitflyer.js
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,16 @@ module.exports = class bitflyer extends Exchange {
}

async fetchOpenOrders (symbol = undefined, since = undefined, limit = 100, params = {}) {
/**
* @method
* @name bitflyer#fetchOpenOrders
* @description fetch all unfilled currently open orders
* @param {str} symbol unified market symbol
* @param {int|undefined} since the earliest time in ms to fetch open orders for
* @param {int|undefined} limit the maximum number of open orders structures to retrieve
* @param {dict} 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}
*/
const request = {
'child_order_state': 'ACTIVE',
};
Expand Down
10 changes: 10 additions & 0 deletions js/bitforex.js
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,16 @@ module.exports = class bitforex extends Exchange {
}

async fetchOpenOrders (symbol = undefined, since = undefined, limit = undefined, params = {}) {
/**
* @method
* @name bitforex#fetchOpenOrders
* @description fetch all unfilled currently open orders
* @param {str|undefined} symbol unified market symbol
* @param {int|undefined} since the earliest time in ms to fetch open orders for
* @param {int|undefined} limit the maximum number of open orders structures to retrieve
* @param {dict} 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}
*/
await this.loadMarkets ();
const market = this.market (symbol);
const request = {
Expand Down
10 changes: 10 additions & 0 deletions js/bitget.js
Original file line number Diff line number Diff line change
Expand Up @@ -2117,6 +2117,16 @@ module.exports = class bitget extends Exchange {
}

async fetchOpenOrders (symbol = undefined, since = undefined, limit = undefined, params = {}) {
/**
* @method
* @name bitget#fetchOpenOrders
* @description fetch all unfilled currently open orders
* @param {str} symbol unified market symbol
* @param {int|undefined} since the earliest time in ms to fetch open orders for
* @param {int|undefined} limit the maximum number of open orders structures to retrieve
* @param {dict} 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}
*/
if (symbol === undefined) {
throw new ArgumentsRequired (this.id + ' fetchOpenOrders() requires a symbol argument');
}
Expand Down
10 changes: 10 additions & 0 deletions js/bithumb.js
Original file line number Diff line number Diff line change
Expand Up @@ -880,6 +880,16 @@ module.exports = class bithumb extends Exchange {
}

async fetchOpenOrders (symbol = undefined, since = undefined, limit = undefined, params = {}) {
/**
* @method
* @name bithumb#fetchOpenOrders
* @description fetch all unfilled currently open orders
* @param {str} symbol unified market symbol
* @param {int|undefined} since the earliest time in ms to fetch open orders for
* @param {int|undefined} limit the maximum number of open orders structures to retrieve
* @param {dict} params extra parameters specific to the bithumb api endpoint
* @returns {[dict]} a list of [order structures]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
*/
if (symbol === undefined) {
throw new ArgumentsRequired (this.id + ' fetchOpenOrders() requires a symbol argument');
}
Expand Down
10 changes: 10 additions & 0 deletions js/bitmart.js
Original file line number Diff line number Diff line change
Expand Up @@ -2037,6 +2037,16 @@ module.exports = class bitmart extends Exchange {
}

async fetchOpenOrders (symbol = undefined, since = undefined, limit = undefined, params = {}) {
/**
* @method
* @name bitmart#fetchOpenOrders
* @description fetch all unfilled currently open orders
* @param {str} symbol unified market symbol
* @param {int|undefined} since the earliest time in ms to fetch open orders for
* @param {int|undefined} limit the maximum number of open orders structures to retrieve
* @param {dict} params extra parameters specific to the bitmart api endpoint
* @returns {[dict]} a list of [order structures]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
*/
return await this.fetchOrdersByStatus ('open', symbol, since, limit, params);
}

Expand Down
10 changes: 10 additions & 0 deletions js/bitmex.js
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,16 @@ module.exports = class bitmex extends Exchange {
}

async fetchOpenOrders (symbol = undefined, since = undefined, limit = undefined, params = {}) {
/**
* @method
* @name bitmex#fetchOpenOrders
* @description fetch all unfilled currently open orders
* @param {str|undefined} symbol unified market symbol
* @param {int|undefined} since the earliest time in ms to fetch open orders for
* @param {int|undefined} limit the maximum number of open orders structures to retrieve
* @param {dict} 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}
*/
const request = {
'filter': {
'open': true,
Expand Down
10 changes: 10 additions & 0 deletions js/bitpanda.js
Original file line number Diff line number Diff line change
Expand Up @@ -1662,6 +1662,16 @@ module.exports = class bitpanda extends Exchange {
}

async fetchOpenOrders (symbol = undefined, since = undefined, limit = undefined, params = {}) {
/**
* @method
* @name bitpanda#fetchOpenOrders
* @description fetch all unfilled currently open orders
* @param {str|undefined} symbol unified market symbol
* @param {int|undefined} since the earliest time in ms to fetch open orders for
* @param {int|undefined} limit the maximum number of open orders structures to retrieve
* @param {dict} params extra parameters specific to the bitpanda api endpoint
* @returns {[dict]} a list of [order structures]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
*/
await this.loadMarkets ();
const request = {
// 'from': this.iso8601 (since),
Expand Down
10 changes: 10 additions & 0 deletions js/bitrue.js
Original file line number Diff line number Diff line change
Expand Up @@ -1331,6 +1331,16 @@ module.exports = class bitrue extends Exchange {
}

async fetchOpenOrders (symbol = undefined, since = undefined, limit = undefined, params = {}) {
/**
* @method
* @name bitrue#fetchOpenOrders
* @description fetch all unfilled currently open orders
* @param {str} symbol unified market symbol
* @param {int|undefined} since the earliest time in ms to fetch open orders for
* @param {int|undefined} limit the maximum number of open orders structures to retrieve
* @param {dict} params extra parameters specific to the bitrue api endpoint
* @returns {[dict]} a list of [order structures]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
*/
if (symbol === undefined) {
throw new ArgumentsRequired (this.id + ' fetchOpenOrders() requires a symbol argument');
}
Expand Down
10 changes: 10 additions & 0 deletions js/bitso.js
Original file line number Diff line number Diff line change
Expand Up @@ -858,6 +858,16 @@ module.exports = class bitso extends Exchange {
}

async fetchOpenOrders (symbol = undefined, since = undefined, limit = 25, params = {}) {
/**
* @method
* @name bitso#fetchOpenOrders
* @description fetch all unfilled currently open orders
* @param {str|undefined} symbol unified market symbol
* @param {int|undefined} since the earliest time in ms to fetch open orders for
* @param {int|undefined} limit the maximum number of open orders structures to retrieve
* @param {dict} params extra parameters specific to the bitso api endpoint
* @returns {[dict]} a list of [order structures]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
*/
await this.loadMarkets ();
const market = this.market (symbol);
// the don't support fetching trades starting from a date yet
Expand Down
10 changes: 10 additions & 0 deletions js/bitstamp.js
Original file line number Diff line number Diff line change
Expand Up @@ -1733,6 +1733,16 @@ module.exports = class bitstamp extends Exchange {
}

async fetchOpenOrders (symbol = undefined, since = undefined, limit = undefined, params = {}) {
/**
* @method
* @name bitstamp#fetchOpenOrders
* @description fetch all unfilled currently open orders
* @param {str|undefined} symbol unified market symbol
* @param {int|undefined} since the earliest time in ms to fetch open orders for
* @param {int|undefined} limit the maximum number of open orders structures to retrieve
* @param {dict} params extra parameters specific to the bitstamp api endpoint
* @returns {[dict]} a list of [order structures]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
*/
let market = undefined;
await this.loadMarkets ();
if (symbol !== undefined) {
Expand Down
10 changes: 10 additions & 0 deletions js/bittrex.js
Original file line number Diff line number Diff line change
Expand Up @@ -912,6 +912,16 @@ module.exports = class bittrex extends Exchange {
}

async fetchOpenOrders (symbol = undefined, since = undefined, limit = undefined, params = {}) {
/**
* @method
* @name bittrex#fetchOpenOrders
* @description fetch all unfilled currently open orders
* @param {str|undefined} symbol unified market symbol
* @param {int|undefined} since the earliest time in ms to fetch open orders for
* @param {int|undefined} limit the maximum number of open orders structures to retrieve
* @param {dict} params extra parameters specific to the bittrex api endpoint
* @returns {[dict]} a list of [order structures]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
*/
await this.loadMarkets ();
const request = {};
let market = undefined;
Expand Down
10 changes: 10 additions & 0 deletions js/bitvavo.js
Original file line number Diff line number Diff line change
Expand Up @@ -1235,6 +1235,16 @@ module.exports = class bitvavo extends Exchange {
}

async fetchOpenOrders (symbol = undefined, since = undefined, limit = undefined, params = {}) {
/**
* @method
* @name bitvavo#fetchOpenOrders
* @description fetch all unfilled currently open orders
* @param {str|undefined} symbol unified market symbol
* @param {int|undefined} since the earliest time in ms to fetch open orders for
* @param {int|undefined} limit the maximum number of open orders structures to retrieve
* @param {dict} params extra parameters specific to the bitvavo api endpoint
* @returns {[dict]} a list of [order structures]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
*/
await this.loadMarkets ();
const request = {
// 'market': market['id'], // rate limit 25 without a market, 1 with market specified
Expand Down
Loading

0 comments on commit 4ee4951

Please sign in to comment.