@@ -16,7 +16,7 @@ import nodeFetch from 'node-fetch';
1616import zip from 'lodash.zipobject' ;
1717import stringHash from 'string-hash' ;
1818// eslint-disable-next-line
19- import { Interval , PositionRisk , Order , FuturesOrder , PositionSide , WorkingType , OrderType , OrderStatus , TimeInForce , Callback , IConstructorArgs , OrderSide , FundingRate , CancelOrder , AggregatedTrade , Trade , MyTrade , WithdrawHistoryResponse , DepositHistoryResponse , DepositAddress , WithdrawResponse , Candle , FuturesCancelAllOpenOrder , OrderBook , Ticker , FuturesUserTrade , Account , FuturesAccountInfo , FuturesBalance , QueryOrder , HttpMethod , BookTicker , DailyStats , PremiumIndex , OpenInterest , IWebsocketsMethods , SymbolConfig , OCOOrder } from './types.js' ;
19+ import { Interval , PositionRisk , Order , FuturesOrder , PositionSide , WorkingType , OrderType , OrderStatus , TimeInForce , Callback , IConstructorArgs , OrderSide , FundingRate , CancelOrder , AggregatedTrade , Trade , MyTrade , WithdrawHistoryResponse , DepositHistoryResponse , DepositAddress , WithdrawResponse , Candle , FuturesCancelAllOpenOrder , OrderBook , Ticker , FuturesUserTrade , Account , FuturesAccountInfo , FuturesBalance , QueryOrder , HttpMethod , BookTicker , DailyStats , PremiumIndex , OpenInterest , IWebsocketsMethods , SymbolConfig , OCOOrder , FuturesAlgoOrder , CancelAlgoOrder } from './types.js' ;
2020// export { Interval, PositionRisk, Order, FuturesOrder, PositionSide, WorkingType, OrderType, OrderStatus, TimeInForce, Callback, IConstructorArgs, OrderSide, FundingRate, CancelOrder, AggregatedTrade, Trade, MyTrade, WithdrawHistoryResponse, DepositHistoryResponse, DepositAddress, WithdrawResponse, Candle, FuturesCancelAllOpenOrder, OrderBook, Ticker, FuturesUserTrade, FuturesAccountInfo, FuturesBalance, QueryOrder } from './types';
2121
2222export interface Dictionary < T > {
@@ -1158,6 +1158,7 @@ export default class Binance {
11581158 // Futures internal functions
11591159 /**
11601160 * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/New-Order
1161+ * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/New-Algo-Order
11611162 * @param type
11621163 * @param side
11631164 * @param symbol symbol if the market
@@ -1223,7 +1224,7 @@ export default class Binance {
12231224 * @param params extra parameters to be sent in the request
12241225 * @returns
12251226 */
1226- async futuresAlgoOrder ( type : OrderType , side : string , symbol : string , quantity : number , price ?: number , params : Dict = { } ) : Promise < FuturesOrder > {
1227+ async futuresAlgoOrder ( type : OrderType , side : string , symbol : string , quantity : number , price ?: number , params : Dict = { } ) : Promise < FuturesAlgoOrder > {
12271228 params . symbol = symbol ;
12281229 params . side = side ;
12291230 params . type = type ;
@@ -4584,7 +4585,7 @@ export default class Binance {
45844585 * @param params extra parameters to be sent in the request
45854586 * @returns
45864587 */
4587- async futuresAlgoOrderStatus ( symbol : string , params : Dict = { } ) : Promise < FuturesOrder > { // Either orderId or origClientOrderId must be sent
4588+ async futuresAlgoOrderStatus ( symbol : string , params : Dict = { } ) : Promise < FuturesAlgoOrder > { // Either orderId or origClientOrderId must be sent
45884589 params . symbol = symbol ;
45894590 return await this . privateFuturesRequest ( 'v1/algoOrder' , params ) ;
45904591 }
@@ -4616,7 +4617,7 @@ export default class Binance {
46164617 * @param params extra parameters to be sent in the request
46174618 * @returns
46184619 */
4619- async futuresCancelAlgoOrder ( symbol : string , orderId ?: number | string , params : Dict = { } ) : Promise < CancelOrder > { // Either orderId or origClientOrderId must be sent
4620+ async futuresCancelAlgoOrder ( symbol : string , orderId ?: number | string , params : Dict = { } ) : Promise < CancelAlgoOrder > { // Either orderId or origClientOrderId must be sent
46204621 params . symbol = symbol ;
46214622 if ( orderId ) params . algoid = orderId ;
46224623 return await this . privateFuturesRequest ( 'v1/algoOrder' , params , 'DELETE' ) ;
@@ -4706,7 +4707,7 @@ export default class Binance {
47064707 * @param params extra parameters to be sent in the request
47074708 * @returns
47084709 */
4709- async futuresAllAlgoOrders ( symbol ?: string , params : Dict = { } ) : Promise < FuturesOrder [ ] > { // Get all account orders; active, canceled, or filled.
4710+ async futuresAllAlgoOrders ( symbol ?: string , params : Dict = { } ) : Promise < FuturesAlgoOrder [ ] > { // Get all account orders; active, canceled, or filled.
47104711 if ( symbol ) params . symbol = symbol ;
47114712 return await this . privateFuturesRequest ( 'v1/allAlgoOrders' , params ) ;
47124713 }
0 commit comments