import { FuturesLeverageResponse, FuturesPositionRisk, MarginType, ExtendedCandlestickChartInterval, FuturesAccount, FuturesLeverageBracket, FuturesUserTrade, FuturesDepth, FuturesExchangeInfo, IncomeType, FuturesIncome, TimeInForce, OrderType, OrderSide, FuturesAggTrade, FuturesOrder, CandlestickChartInterval, FuturesChartCandle, SubminutedCandlestickChartInterval } from './types'; /** * Array of all Binance intervals. * @example * ```ts * import { futuresIntervals } from 'altamoon-binance-api'; * * console.log(futuresIntervals); * ``` */ export declare const futuresIntervals: CandlestickChartInterval[]; /** * Array of extended intervals. */ export declare const extendedFuturesIntervals: ExtendedCandlestickChartInterval[]; /** * Subminute intervals */ export declare const subminuteFuturesIntervals: SubminutedCandlestickChartInterval[]; /** * All intervals */ export declare const allFuturesIntervals: (CandlestickChartInterval | ExtendedCandlestickChartInterval | SubminutedCandlestickChartInterval)[]; /** * All intervals excluding subminute */ export declare const allFuturesIntervalsExcludingSubminute: (CandlestickChartInterval | ExtendedCandlestickChartInterval)[]; interface AggTradeArg { symbol: string; fromId?: number; startTime?: number; endTime?: number; limit?: number; } /** * Compressed/Aggregate Trades List * @remarks Get compressed, aggregate market trades. Market trades that fill at the time, from the same order, with the same price will have the quantity aggregated. * @param symbol - Symbol * @returns */ export declare function futuresAggTrades(options: AggTradeArg): Promise; /** * 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. * @param method - Request method (GET, POST or PUT) * @see {@link https://binance-docs.github.io/apidocs/futures/en/#start-user-data-stream-user_stream} * @returns Data stream key */ export declare function futuresUserDataStream(method: 'GET' | 'POST' | 'PUT'): 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; interface UserTradesOptions { symbol: string; startTime?: number; endTime?: number; fromId?: number; limit?: number; } /** * 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 options - Request options * @param options.symbol - Symbol * @param options.startTime - Start time * @param options.endTime - End time * @param options.fromId - Trade id to fetch from. Default gets most recent trades. * @param options.limit - Limit * @returns List of trades */ export declare function futuresUserTrades({ symbol, startTime, endTime, fromId, limit, }: UserTradesOptions): 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. This is the general function used internally by `futuresMarketOrder`, `futuresLimitOrder` etc. * @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; /** * Create market order * @param side - Order side * @param symbol - Symbol * @param quantity - Quantity * @param options - Additional order options * @param options.reduceOnly - Reduce only * @returns New order */ export declare function futuresMarketOrder(side: OrderSide, symbol: string, quantity: number | string, { reduceOnly }?: { reduceOnly?: boolean; }): Promise; /** * Create limit order * @param side - Order side * @param symbol - Symbol * @param quantity - Quantity * @param price - Price * @param options - Additional order options * @param options.reduceOnly - Reduce only * @param options.timeInForce - Time in force * @param options.newClientOrderId - A unique id among open orders. Automatically generated if not sent * @returns New order */ export declare function futuresLimitOrder(side: OrderSide, symbol: string, quantity: number | string, price: number | string, { reduceOnly, timeInForce, newClientOrderId, }?: { reduceOnly?: boolean; timeInForce?: TimeInForce; newClientOrderId?: string; }): Promise; /** * Create stop market order * @param side - Order side * @param symbol - Symbol * @param quantity - Quantity * @param stopPrice - Stop price * @param options - Additional order options * @param options.reduceOnly - Reduce only * @returns New order */ export declare function futuresStopMarketOrder(side: OrderSide, symbol: string, quantity: number | string, stopPrice: number | string, { reduceOnly }?: { reduceOnly?: boolean; }): Promise; /** * Create stop market order * @param side - Order side * @param symbol - Symbol * @param quantity - Quantity * @param price - Price * @param stopPrice - Stop price * @param options - Additional order options * @param options.reduceOnly - Reduce only * @param options.timeInForce - Time in force * @param options.newClientOrderId - A unique id among open orders. Automatically generated if not sent * @returns New order */ 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; /** * Get Income History (USER_DATA) * @param params - Request params * @param params.symbol - Symbol * @param params.incomeType - Incomr type * @param params.startTime - Timestamp in ms to get funding from INCLUSIVE. * @param params.endTime - Timestamp in ms to get funding until INCLUSIVE * @param params.limit - Default 100; max 1000 * @param params.recvWindow - Specify the number of milliseconds after timestamp the request is valid for * @param params.timestamp - Millisecond timestamp of when the request was created and sent * @returns Income information array */ export declare function futuresIncome(params: { symbol?: string; incomeType?: IncomeType; startTime?: number; endTime?: number; limit?: number; recvWindow?: number; timestamp?: number; }): Promise; /** * Cancel Order (TRADE) * @remarks Cancel an active order. Either `orderId` or `origClientOrderId` must be sent. * @param symbol - Symbol * @param options - Order information * @param options.orderId - Order ID * @param options.origClientOrderId - Previously used newClientOrderId * @returns Canceled order */ export declare function futuresCancelOrder(symbol: string, { orderId, origClientOrderId }: { orderId?: number; origClientOrderId?: string; }): Promise; /** * Cancel All Open Orders (TRADE) * @param symbol - Symbol * @returns Request info */ export declare function futuresCancelAllOrders(symbol: string): Promise<{ msg: string; code: 200; }>; /** * Modify Isolated Position Margin (TRADE) * @param symbol - Symbol * @param amount - Amount * @param type - 1: Add position margin,2: Reduce position margin * @returns Request info */ export declare function futuresPositionMargin(symbol: string, amount: number, type: 1 | 2): Promise; /** * * @param options - Request options * @param options.symbol - Symbol * @param options.interval - Interval * @param options.symbol - Start time * @param options.symbol - End time * @returns Candles */ export declare function futuresKLines(options: { symbol: string; interval: CandlestickChartInterval; startTime?: number; endTime?: number; limit?: number; }): Promise; export {}; //# sourceMappingURL=futuresREST.d.ts.map