import futuresCandles from './futuresCandles'; import { FuturesLeverageResponse, FuturesPositionRisk, MarginType, FuturesAccount, FuturesLeverageBracket, FuturesUserTrades, FuturesDepth, FuturesExchangeInfo, IncomeType, FuturesIncome, TimeInForce, OrderType, OrderSide, FuturesOrder, CandlestickChartInterval } from './types'; export { futuresCandles }; export declare const futuresIntervals: CandlestickChartInterval[]; /** * Change Initial Leverage (TRADE) * @remarks Change user's initial leverage of specific symbol market. * @see {@link https://binance-docs.github.io/apidocs/futures/en/#change-initial-leverage-trade} * @param symbol - Symbol * @param leverage - Target initial leverage: int from 1 to 125 */ export declare function futuresLeverage(symbol: string, leverage: number): Promise; /** * Change Margin Type (TRADE) * @see {@link https://binance-docs.github.io/apidocs/futures/en/#change-margin-type-trade} * @param symbol - Symbol * @param marginType - Margin type */ export declare function futuresMarginType(symbol: string, marginType: MarginType): Promise; /** * Position Information V2 (USER_DATA) * @see {@link https://binance-docs.github.io/apidocs/futures/en/#position-information-v2-user_data} * @remarks Get current position information. */ export declare function futuresPositionRisk(): Promise; /** * Current All Open Orders (USER_DATA) * @remarks Get all open orders on a symbol. * @see {@link https://binance-docs.github.io/apidocs/futures/en/#current-all-open-orders-user_data} * Careful when accessing this with no symbol because of high weight. * @param symbol - Symbol */ export declare function futuresOpenOrders(symbol?: string): Promise; /** * All Orders (USER_DATA) * @remarks Get all account orders; active, canceled, or filled. * @see {@link https://binance-docs.github.io/apidocs/futures/en/#all-orders-user_data} * @param symbol - Symbol */ export declare function futuresAllOrders(symbol?: string): Promise; /** * Latest price for all symbols * @see {@link https://binance-docs.github.io/apidocs/futures/en/#symbol-price-ticker} * @returns An object of symbols and corresponding prices */ export declare function futuresPrices(): Promise>; /** * Notional and Leverage Brackets (USER_DATA) * @see {@link https://binance-docs.github.io/apidocs/futures/en/#notional-and-leverage-brackets-user_data} * @param symbol - Symbol * @returns Brackets */ export declare function futuresLeverageBracket(symbol?: string): Promise<{ symbol: string; brackets: FuturesLeverageBracket[]; }[]>; /** * Start User Data Stream (USER_STREAM) * @remarks * Start a new user data stream. The stream will close after 60 minutes unless a keepalive is sent. * If the account has an active listenKey, that listenKey will be returned * and its validity will be extended for 60 minutes. * @see {@link https://binance-docs.github.io/apidocs/futures/en/#start-user-data-stream-user_stream} * @returns Data stream key */ export declare function futuresGetDataStream(): Promise<{ listenKey: string; }>; /** * Account Information V2 (USER_DATA) * @remarks Get current account information. * @see {@link https://binance-docs.github.io/apidocs/futures/en/#account-information-v2-user_data} * @returns Account information */ export declare function futuresAccount(): Promise; /** * Account Trade List (USER_DATA) * @remarks Get trades for a specific account and symbol. * @see {@link https://binance-docs.github.io/apidocs/futures/en/#account-trade-list-user_data} * @param symbol - Symbol * @returns List of trades */ export declare function futuresUserTrades(symbol: string): Promise; /** * Get order Book * @param symbol - Symbol */ export declare function futuresDepth(symbol: string): Promise; /** * Get exchange Information * @remarks Current exchange trading rules and symbol information */ export declare function futuresExchangeInfo(): Promise; interface FuturesOrderOptions { side: OrderSide; symbol: string; quantity: number | string; price: number | string | null; stopPrice: number | string | null; type: OrderType; timeInForce?: TimeInForce; reduceOnly?: boolean; newClientOrderId?: string; } /** * New Order (TRADE) * @remarks Send in a new order. * @see {@link https://binance-docs.github.io/apidocs/futures/en/#new-order-trade} * @param options - Order options * @param options.side - Order side * @param options.symbol - Symbol * @param options.quantity - Quantity * @param options.price - Price (for limit and stop limit orders) * @param options.stopPrice - Stop orice (for stop orders) * @param options.type - Order type * @param options.timeInForce - Time in force * @param options.reduceOnly - Reduce only * @param options.newClientOrderId - A unique id among open orders. Automatically generated if not sent. * @returns New order */ export declare function futuresOrder({ side, symbol, quantity, price, stopPrice, type, timeInForce, reduceOnly, newClientOrderId, }: FuturesOrderOptions): Promise; export declare function futuresMarketOrder(side: OrderSide, symbol: string, quantity: number | string, { reduceOnly }?: { reduceOnly?: boolean; }): Promise; export declare function futuresLimitOrder(side: OrderSide, symbol: string, quantity: number | string, price: number | string, { reduceOnly, timeInForce, newClientOrderId, }?: { reduceOnly?: boolean; timeInForce?: TimeInForce; newClientOrderId?: string; }): Promise; export declare function futuresStopMarketOrder(side: OrderSide, symbol: string, quantity: number | string, stopPrice: number | string, { reduceOnly }?: { reduceOnly?: boolean; }): Promise; export declare function futuresStopLimitOrder(side: OrderSide, symbol: string, quantity: number | string, price: number | string, stopPrice: number | string, { reduceOnly, timeInForce, newClientOrderId, }?: { reduceOnly?: boolean; timeInForce?: TimeInForce; newClientOrderId?: string; }): Promise; export declare function futuresIncome(params: { symbol?: string; incomeType?: IncomeType; startTime?: number; endTime?: number; limit?: number; recvWindow?: number; timestamp?: number; }): Promise; export declare function futuresCancelOrder(symbol: string, { orderId, origClientOrderId }: { orderId?: number; origClientOrderId?: string; }): Promise; export declare function futuresCancelAllOrders(symbol: string): Promise<{ msg: string; code: 200; }>; export declare function futuresPositionMargin(symbol: string, amount: number, type: 1 | 2): Promise; //# sourceMappingURL=futuresREST.d.ts.map