Skip to content

Commit

Permalink
merged
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor committed Jul 22, 2022
2 parents 05c0508 + e71d862 commit dad8d70
Show file tree
Hide file tree
Showing 107 changed files with 8,866 additions and 8,861 deletions.
7 changes: 6 additions & 1 deletion build/transpile.js
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,9 @@ class Transpiler {
[ /(\s+) \* @description (.*)/g, '$1$2' ], // docstring description
[ /\s+\* @name .*/g, '' ], // docstring @name
[ /(\s+) \* @see( .*)/g, '$1see$2' ], // docstring @see
[ /(\s+ \* @(param|returns) {[^}]*)string([^}]*}.*)/g, '$1str$3' ], // docstring type conversion
[ /(\s+ \* @(param|returns) {[^}]*)number([^}]*}.*)/g, '$1int|float$3' ], // docstring type conversion
[ /(\s+ \* @(param|returns) {[^}]*)object([^}]*}.*)/g, '$1dict$3' ], // docstring type conversion
[ /(\s+) \* @returns ([^\{])/g, '$1:returns: $2' ], // docstring return
[ /(\s+) \* @returns \{(.+)\}/g, '$1:returns $2:' ], // docstring return
[ /(\s+ \* @param \{[\]\[\|a-zA-Z]+\} )([a-zA-Z0-9_-]+)\.([a-zA-Z0-9_-]+) (.*)/g, '$1$2[\'$3\'] $4' ], // docstring params.anything
Expand Down Expand Up @@ -512,7 +515,6 @@ class Transpiler {
[ /Precise\.stringGe\s/g, 'Precise::string_ge' ],
[ /Precise\.stringLt\s/g, 'Precise::string_lt' ],
[ /Precise\.stringLe\s/g, 'Precise::string_le' ],

// insert common regexes in the middle (critical)
].concat (this.getCommonRegexes ()).concat ([

Expand Down Expand Up @@ -592,6 +594,9 @@ class Transpiler {
[ /super\./g, 'parent::'],
[ /\sdelete\s([^\n]+)\;/g, ' unset($1);' ],
[ /\~([\]\[\|@\.\s+\:\/#\-a-zA-Z0-9_-]+?)\~/g, '{$1}' ], // resolve the "arrays vs url params" conflict (both are in {}-brackets)
// docstring "string" type is the same as JS so no need to convert
[ /(\s+ \* @(param|return) {[^}]*)number([^}]*}.*)/g, '$1int|float$3' ], // docstring type conversion
[ /(\s+ \* @(param|return) {[^}]*)object([^}]*}.*)/g, '$1array$3' ], // docstring type conversion
])
}

Expand Down
246 changes: 123 additions & 123 deletions js/aax.js

Large diffs are not rendered by default.

224 changes: 112 additions & 112 deletions js/ascendex.js

Large diffs are not rendered by default.

34 changes: 17 additions & 17 deletions js/base/Exchange.js
Original file line number Diff line number Diff line change
Expand Up @@ -2502,7 +2502,7 @@ module.exports = class Exchange {
* @method
* @param {string} type Order type
* @param {boolean} exchangeSpecificParam exchange specific postOnly
* @param {dict} params exchange specific params
* @param {object} params exchange specific params
* @returns {boolean} true if a post only order, false otherwise
*/
const timeInForce = this.safeStringUpper (params, 'timeInForce');
Expand Down Expand Up @@ -2576,11 +2576,11 @@ module.exports = class Exchange {
* @method
* @name exchange#fetchMarkOHLCV
* @description fetches historical mark price candlestick data containing the open, high, low, and close price of a market
* @param {str} symbol unified symbol of the market to fetch OHLCV data for
* @param {str} timeframe the length of time each candle represents
* @param {int|undefined} since timestamp in ms of the earliest candle to fetch
* @param {int|undefined} limit the maximum amount of candles to fetch
* @param {dict} params extra parameters specific to the exchange api endpoint
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
* @param {string} timeframe the length of time each candle represents
* @param {number|undefined} since timestamp in ms of the earliest candle to fetch
* @param {number|undefined} limit the maximum amount of candles to fetch
* @param {object} params extra parameters specific to the exchange api endpoint
* @returns {[[int|float]]} A list of candles ordered as timestamp, open, high, low, close, undefined
*/
if (this.has['fetchMarkOHLCV']) {
Expand All @@ -2598,11 +2598,11 @@ module.exports = class Exchange {
* @method
* @name exchange#fetchIndexOHLCV
* @description fetches historical index price candlestick data containing the open, high, low, and close price of a market
* @param {str} symbol unified symbol of the market to fetch OHLCV data for
* @param {str} timeframe the length of time each candle represents
* @param {int|undefined} since timestamp in ms of the earliest candle to fetch
* @param {int|undefined} limit the maximum amount of candles to fetch
* @param {dict} params extra parameters specific to the exchange api endpoint
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
* @param {string} timeframe the length of time each candle represents
* @param {number|undefined} since timestamp in ms of the earliest candle to fetch
* @param {number|undefined} limit the maximum amount of candles to fetch
* @param {object} params extra parameters specific to the exchange api endpoint
* @returns {[[int|float]]} A list of candles ordered as timestamp, open, high, low, close, undefined
*/
if (this.has['fetchIndexOHLCV']) {
Expand All @@ -2620,11 +2620,11 @@ module.exports = class Exchange {
* @method
* @name exchange#fetchPremiumIndexOHLCV
* @description fetches historical premium index price candlestick data containing the open, high, low, and close price of a market
* @param {str} symbol unified symbol of the market to fetch OHLCV data for
* @param {str} timeframe the length of time each candle represents
* @param {int|undefined} since timestamp in ms of the earliest candle to fetch
* @param {int|undefined} limit the maximum amount of candles to fetch
* @param {dict} params extra parameters specific to the exchange api endpoint
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
* @param {string} timeframe the length of time each candle represents
* @param {number|undefined} since timestamp in ms of the earliest candle to fetch
* @param {number|undefined} limit the maximum amount of candles to fetch
* @param {object} params extra parameters specific to the exchange api endpoint
* @returns {[[int|float]]} A list of candles ordered as timestamp, open, high, low, close, undefined
*/
if (this.has['fetchPremiumIndexOHLCV']) {
Expand All @@ -2642,7 +2642,7 @@ module.exports = class Exchange {
* @ignore
* @method
* * Must add timeInForce to this.options to use this method
* @return {str} returns the exchange specific value for timeInForce
* @return {string} returns the exchange specific value for timeInForce
*/
const timeInForce = this.safeStringUpper (params, 'timeInForce'); // supported values GTC, IOC, PO
if (timeInForce !== undefined) {
Expand Down
Loading

0 comments on commit dad8d70

Please sign in to comment.