import Exchange from './abstract/binance.js'; import type { TransferEntry, Int, OrderSide, Balances, OrderType, Trade, OHLCV, Order, FundingRateHistory, OpenInterest, Liquidation, OrderRequest, Str, Transaction, Ticker, OrderBook, Tickers, Market, Greeks, Strings, Currency, MarketInterface, MarginMode, MarginModes, Leverage, Leverages, Num, Option, MarginModification, TradingFeeInterface, Currencies, TradingFees, Conversion, CrossBorrowRate, IsolatedBorrowRates, IsolatedBorrowRate, Dict, LeverageTier, LeverageTiers, int, LedgerEntry, FundingRate, FundingRates, DepositAddress, LongShortRatio, BorrowInterest, Position, ADL, List, NullableDict, CurrencyInterface, DepositWithdrawFees, Status, PositionModeInfo, MarginLoan, AllGreeks, LastPrice, FundingHistory, LastPrices } from './base/types.js'; /** * @class binance * @augments Exchange */ export default class binance extends Exchange { describe(): any; isInverse(type: string, subType?: Str): boolean; isLinear(type: string, subType?: Str): boolean; setSandboxMode(enable: boolean): void; createExpiredOptionMarket(symbol: string): MarketInterface; market(symbol: Str): MarketInterface; safeMarket(marketId?: Str, market?: Market, delimiter?: Str, marketType?: Str): MarketInterface; nonce(): number; /** * @method * @name binance#mintTokenizedAsset * @ignore * @description mint a tokenized asset from an underlying equity holding * @see https://developers.binance.com/en/docs/catalog/advanced-trading-stocks-trading/api/rest-api/tokenized#tokenized-mint * @param {string} underlyingAsset underlying asset to mint into tokenized asset, ex. AAPL * @param {string} underlyingAssetAmount quantity of the underlying asset to mint * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {string} [params.clientOrderId] the clientOrderId of the order * @param {int} [params.recvWindow] cannot be greater than 60000 * @returns {object} the response from the exchange */ mintTokenizedAsset(underlyingAsset: string, underlyingAssetAmount: string, params?: Dict): any; /** * @method * @name binance#redeemTokenizedAsset * @ignore * @description redeem a tokenized stock asset for the underlying asset * @see https://developers.binance.com/en/docs/catalog/advanced-trading-stocks-trading/api/rest-api/tokenized#tokenized-redeem * @param {string} tokenizedAsset tokenized asset to redeem, the onchain token identifier not the equity ticker ex. AAPLB * @param {string} tokenizedAssetAmount quantity of the tokenized asset to redeem * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {string} [params.clientOrderId] the clientOrderId of the order * @param {int} [params.recvWindow] cannot be greater than 60000 * @returns {object} the response from the exchange */ redeemTokenizedAsset(tokenizedAsset: string, tokenizedAssetAmount: string, params?: Dict): any; /** * @method * @name binance#tokenizedConvertStatus * @ignore * @description check the status of redeeming or minting between a tokenized stock asset and the underlying asset * @see https://developers.binance.com/en/docs/catalog/advanced-trading-stocks-trading/api/rest-api/tokenized#tokenized-convert-status * @param {string} issuerRequestId the issuerRequestId returned from redeemTokenizedAsset or mintTokenizedAsset * @param {string} convertType either MINT or REDEEM * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {int} [params.recvWindow] cannot be greater than 60000 * @returns {object} the response from the exchange */ tokenizedConvertStatus(issuerRequestId: string, convertType: string, params?: Dict): any; /** * @method * @name binance#tokenizedConvertHistory * @ignore * @description check the history of redeeming or minting between a tokenized stock asset and the underlying asset * @see https://developers.binance.com/en/docs/catalog/advanced-trading-stocks-trading/api/rest-api/tokenized#tokenized-convert-history * @param {int} [since] timestamp in ms of the earliest conversion to fetch * @param {int} [limit] the maximum amount of conversions to fetch * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {int} [params.recvWindow] cannot be greater than 60000 * @param {int} [params.endTime] timestamp in ms of the latest conversion to fetch * @param {int} [params.lastTradeTokenId] last record id from the previous page * @returns {object} the response from the exchange */ tokenizedConvertHistory(since?: Int, limit?: Int, params?: Dict): any; /** * @method * @name binance#enableDemoTrading * @description enables or disables demo trading mode * @see https://www.binance.com/en/support/faq/detail/9be58f73e5e14338809e3b705b9687dd * @see https://demo.binance.com/en/my/settings/api-management * @param {boolean} [enable] true if demo trading should be enabled, false otherwise */ enableDemoTrading(enable: boolean): void; /** * @method * @name binance#fetchTime * @description fetches the current integer timestamp in milliseconds from the exchange server * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-endpoints#check-server-time // spot * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Check-Server-Time // swap * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Check-Server-time // future * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {string} [params.subType] "linear" or "inverse" * @returns {int} the current integer timestamp in milliseconds from the exchange server */ fetchTime(params?: Dict): Promise; /** * @method * @name binance#fetchCurrencies * @description fetches all available currencies on an exchange * @see https://developers.binance.com/docs/wallet/capital/all-coins-info * @see https://developers.binance.com/en/docs/catalog/core-trading-margin-trading/api/rest-api/market-data#get-all-cross-margin-pairs * @param {object} [params] extra parameters specific to the exchange API endpoint * @returns {object} an associative dictionary of currencies */ fetchCurrencies(params?: Dict): Promise; parseCurrenciesCustom(responseCurrencies: any, marginablesById: NullableDict): Currencies; parseCurrency(rawCurrency: Dict): CurrencyInterface; /** * @method * @name binance#fetchMarkets * @description retrieves data on all markets for binance * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-endpoints#exchange-information // spot * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Exchange-Information // swap * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Exchange-Information // future * @see https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-data#exchange-information // option * @see https://developers.binance.com/docs/margin_trading/market-data/Get-All-Cross-Margin-Pairs // cross margin * @see https://developers.binance.com/docs/margin_trading/market-data/Get-All-Isolated-Margin-Symbol // isolated margin * @see https://developers.binance.com/en/docs/catalog/advanced-trading-stocks-trading/api/rest-api/market-data#exchange-info // tokenized stocks * @param {object} [params] extra parameters specific to the exchange API endpoint * @returns {object[]} an array of objects representing market data */ fetchMarkets(params?: Dict): Promise; parseMarket(market: Dict): Market; parseBalanceHelper(entry: Dict): import("./base/types.js").BalanceAccount; parseBalanceCustom(response: any, type?: Str, marginMode?: Str, isPortfolioMargin?: boolean): Balances; /** * @method * @name binance#fetchBalance * @description query for balance and get the amount of funds available for trading or funds locked in orders * @see https://developers.binance.com/en/docs/catalog/core-trading-spot-trading/api/rest-api/account#get-account // spot * @see https://developers.binance.com/docs/margin_trading/account/Query-Cross-Margin-Account-Details // cross margin * @see https://developers.binance.com/docs/margin_trading/account/Query-Isolated-Margin-Account-Info // isolated margin * @see https://developers.binance.com/docs/wallet/asset/funding-wallet // funding * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Futures-Account-Balance-V2 // swap * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Futures-Account-Balance // future * @see https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/account#option-margin-account-information // option * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Account-Balance // portfolio margin * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {string} [params.type] 'spot', 'margin', 'swap', 'future', 'option', 'savings', 'funding' or 'papi', use params.subType 'inverse' for COIN-M * @param {string} [params.marginMode] 'cross' or 'isolated', for margin trading, uses this.options.defaultMarginMode if not passed, defaults to undefined/None/null * @param {string[]|undefined} [params.symbols] unified market symbols, only used in isolated margin mode * @param {boolean} [params.portfolioMargin] set to true if you would like to fetch the balance for a portfolio margin account * @param {string} [params.subType] 'linear' or 'inverse' * @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure} */ fetchBalance(params?: Dict): Promise; /** * @method * @name binance#fetchOrderBook * @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data * @see https://developers.binance.com/en/docs/catalog/core-trading-spot-trading/api/rest-api/market#depth // spot * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Order-Book // swap * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Order-Book-RPI // swap rpi * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Order-Book // future * @see https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-data#order-book // option * @param {string} symbol unified symbol of the market to fetch the order book for * @param {int} [limit] the maximum amount of order book entries to return * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {boolean} [params.rpi] *future only* set to true to use the RPI endpoint * @returns {object} an [order book structure]{@link https://docs.ccxt.com/?id=order-book-structure} */ fetchOrderBook(symbol: string, limit?: Int, params?: Dict): Promise; parseTicker(ticker: Dict, market?: Market): Ticker; /** * @method * @name binance#fetchStatus * @description the latest known information on the availability of the exchange API * @see https://developers.binance.com/docs/wallet/others/system-status * @param {object} [params] extra parameters specific to the exchange API endpoint * @returns {object} a [status structure]{@link https://docs.ccxt.com/?id=exchange-status-structure} */ fetchStatus(params?: Dict): Promise; /** * @method * @name binance#fetchTicker * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#24hr-ticker-price-change-statistics // spot * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#rolling-window-price-change-statistics // spot * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/24hr-Ticker-Price-Change-Statistics // swap * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/24hr-Ticker-Price-Change-Statistics // future * @see https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-data#ticker24hr-price-change-statistics // option * @see https://developers.binance.com/en/docs/catalog/advanced-trading-stocks-trading/api/rest-api/market-data#latest-quote // stock * @param {string} symbol unified symbol of the market to fetch the ticker for * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {boolean} [params.rolling] (spot only) default false, if true, uses the rolling 24 hour ticker endpoint /api/v3/ticker * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure} */ fetchTicker(symbol: string, params?: Dict): Promise; checkNoStockSymbols(symbols: Strings, methodName: string): void; /** * @method * @name binance#fetchBidsAsks * @description fetches the bid and ask price and volume for multiple markets * @see https://developers.binance.com/en/docs/catalog/core-trading-spot-trading/api/rest-api/market#ticker-book-ticker // spot * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Symbol-Order-Book-Ticker // swap * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Symbol-Order-Book-Ticker // future * @see https://developers.binance.com/docs/derivatives/options-trading/market-data/24hr-Ticker-Price-Change-Statistics // option * @param {string[]|undefined} symbols unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {string} [params.subType] "linear" or "inverse" * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure} tokenized stock symbols are not supported here, use fetchTicker() per symbol instead */ fetchBidsAsks(symbols?: Strings, params?: Dict): Promise; /** * @method * @name binance#fetchLastPrices * @description fetches the last price for multiple markets * @see https://developers.binance.com/en/docs/catalog/core-trading-spot-trading/api/rest-api/market#ticker-price // spot * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Symbol-Price-Ticker // swap * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Symbol-Price-Ticker // future * @param {string[]|undefined} symbols unified symbols of the markets to fetch the last prices * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {string} [params.subType] "linear" or "inverse" * @returns {object} a dictionary of lastprices structures */ fetchLastPrices(symbols?: Strings, params?: Dict): Promise; parseLastPrice(entry: Dict, market?: Market): LastPrice; /** * @method * @name binance#fetchTickers * @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market * @see https://developers.binance.com/en/docs/catalog/core-trading-spot-trading/api/rest-api/market#ticker24hr // spot * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/24hr-Ticker-Price-Change-Statistics // swap * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/24hr-Ticker-Price-Change-Statistics // future * @see https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-data#ticker24hr-price-change-statistics // option * @param {string[]} [symbols] unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {string} [params.subType] "linear" or "inverse" * @param {string} [params.type] 'spot', 'option', use params["subType"] for swap and future markets * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure} tokenized stock symbols are not supported here, use fetchTicker() per symbol instead */ fetchTickers(symbols?: Strings, params?: Dict): Promise; parseTickersForRolling(response: any, symbols: any): any; /** * @method * @name binance#fetchMarkPrice * @description fetches mark price for the market * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Index-Price-and-Mark-Price * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Mark-Price * @see https://developers.binance.com/docs/derivatives/options-trading/market-data/Option-Mark-Price * @param {string} symbol unified symbol of the market to fetch the ticker for * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {string} [params.subType] "linear" or "inverse" * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure} */ fetchMarkPrice(symbol: string, params?: Dict): Promise; /** * @method * @name binance#fetchMarkPrices * @description fetches mark prices for multiple markets * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Index-Price-and-Mark-Price * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Mark-Price * @see https://developers.binance.com/docs/derivatives/options-trading/market-data/Option-Mark-Price * @param {string[]} [symbols] unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {string} [params.subType] "linear" or "inverse" * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure} */ fetchMarkPrices(symbols?: Strings, params?: Dict): Promise; parseOHLCV(ohlcv: any, market?: Market): OHLCV; /** * @method * @name binance#fetchOHLCV * @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market * @see https://developers.binance.com/en/docs/catalog/core-trading-spot-trading/api/rest-api/market#klines // spot * @see https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-data#kline-candlestick-data // option * @see https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/market-data#kline-candlestick-data // swap * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Index-Price-Kline-Candlestick-Data // swap index * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Mark-Price-Kline-Candlestick-Data // swap mark * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Premium-Index-Kline-Data // swap premium * @see https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-coin-m-futures/api/rest-api/market-data#kline-candlestick-data // future * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Index-Price-Kline-Candlestick-Data // future index * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Mark-Price-Kline-Candlestick-Data // future mark * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Premium-Index-Kline-Data // future premium * @param {string} symbol unified symbol of the market to fetch OHLCV data for * @param {string} timeframe the length of time each candle represents * @param {int} [since] timestamp in ms of the earliest candle to fetch * @param {int} [limit] the maximum amount of candles to fetch * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {string} [params.price] "mark" or "index" for mark price and index price candles * @param {int} [params.until] timestamp in ms of the latest candle to fetch * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params) * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume */ fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: Dict): Promise; parseTrade(trade: Dict, market?: Market): Trade; /** * @method * @name binance#fetchTrades * @description get the list of most recent trades for a particular symbol * Default fetchTradesMethod * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#compressedaggregate-trades-list // publicGetAggTrades (spot) * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Compressed-Aggregate-Trades-List // fapiPublicGetAggTrades (swap) * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Compressed-Aggregate-Trades-List // dapiPublicGetAggTrades (future) * @see https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-data#recent-trades-list // eapiPublicGetTrades (option) * Other fetchTradesMethod * @see https://developers.binance.com/en/docs/catalog/core-trading-spot-trading/api/rest-api/market#get-trades // publicGetTrades (spot) * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Recent-Trades-List // fapiPublicGetTrades (swap) * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Recent-Trades-List // dapiPublicGetTrades (future) * @see https://developers.binance.com/en/docs/catalog/core-trading-spot-trading/api/rest-api/market#historical-trades // publicGetHistoricalTrades (spot) * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Old-Trades-Lookup // fapiPublicGetHistoricalTrades (swap) * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Old-Trades-Lookup // dapiPublicGetHistoricalTrades (future) * @param {string} symbol unified symbol of the market to fetch trades for * @param {int} [since] only used when fetchTradesMethod is 'publicGetAggTrades', 'fapiPublicGetAggTrades', or 'dapiPublicGetAggTrades' * @param {int} [limit] default 500, max 1000 * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {int} [params.until] only used when fetchTradesMethod is 'publicGetAggTrades', 'fapiPublicGetAggTrades', or 'dapiPublicGetAggTrades' * @param {int} [params.fetchTradesMethod] 'publicGetAggTrades' (spot default), 'fapiPublicGetAggTrades' (swap default), 'dapiPublicGetAggTrades' (future default), 'eapiPublicGetTrades' (option default), 'publicGetTrades', 'fapiPublicGetTrades', 'dapiPublicGetTrades', 'publicGetHistoricalTrades', 'fapiPublicGetHistoricalTrades', 'dapiPublicGetHistoricalTrades' * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params) * * EXCHANGE SPECIFIC PARAMETERS * @param {int} [params.fromId] trade id to fetch from, default gets most recent trades, not used when fetchTradesMethod is 'publicGetTrades', 'fapiPublicGetTrades', 'dapiPublicGetTrades', or 'eapiPublicGetTrades' * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades} */ fetchTrades(symbol: string, since?: Int, limit?: Int, params?: Dict): Promise; /** * @method * @name binance#editSpotOrder * @ignore * @description edit a trade order * @see https://developers.binance.com/en/docs/catalog/core-trading-spot-trading/api/rest-api/trade#order-cancel-replace * @param {string} id cancel order id * @param {string} symbol unified symbol of the market to create an order in * @param {string} type 'market' or 'limit' or 'STOP_LOSS' or 'STOP_LOSS_LIMIT' or 'TAKE_PROFIT' or 'TAKE_PROFIT_LIMIT' or 'STOP' * @param {string} side 'buy' or 'sell' * @param {float} amount how much of currency you want to trade in units of base currency * @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {string} [params.marginMode] 'cross' or 'isolated', for spot margin trading * @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure} */ editSpotOrder(id: string, symbol: string, type: OrderType, side: OrderSide, amount: Num, price?: Num, params?: Dict): Promise; editSpotOrderRequest(id: string, symbol: Str, type: OrderType, side: OrderSide, amount: Num, price?: Num, params?: Dict): Dict; editContractOrderRequest(id: Str, symbol: Str, type: Str, side: Str, amount: Num, price?: Num, params?: Dict): Dict; /** * @method * @name binance#editContractOrder * @description edit a trade order * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Modify-Order * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Modify-Order * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Modify-UM-Order * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Modify-CM-Order * @param {string} id cancel order id * @param {string} symbol unified symbol of the market to create an order in * @param {string} type 'market' or 'limit' * @param {string} side 'buy' or 'sell' * @param {float} amount how much of currency you want to trade in units of base currency * @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {boolean} [params.portfolioMargin] set to true if you would like to edit an order in a portfolio margin account * @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure} */ editContractOrder(id: string, symbol: string, type: OrderType, side: OrderSide, amount: Num, price?: Num, params?: Dict): Promise; /** * @method * @name binance#editOrder * @description edit a trade order * @see https://developers.binance.com/en/docs/catalog/core-trading-spot-trading/api/rest-api/trade#order-cancel-replace * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Modify-Order * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Modify-Order * @param {string} id cancel order id * @param {string} symbol unified symbol of the market to create an order in * @param {string} type 'market' or 'limit' * @param {string} side 'buy' or 'sell' * @param {float} amount how much of currency you want to trade in units of base currency * @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders * @param {object} [params] extra parameters specific to the exchange API endpoint * @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure} */ editOrder(id: string, symbol: string, type: OrderType, side: OrderSide, amount?: Num, price?: Num, params?: Dict): Promise; /** * @method * @name binance#editOrders * @description edit a list of trade orders * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Modify-Multiple-Orders * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Modify-Multiple-Orders * @param {Array} orders list of orders to create, each object should contain the parameters required by createOrder, namely symbol, type, side, amount, price and params * @param {object} [params] extra parameters specific to the exchange API endpoint * @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure} */ editOrders(orders: OrderRequest[], params?: Dict): Promise; parseOrderStatus(status: Str): Str; parseOrderTypeByMarket(type: Str, marketType: Str): Str; parseOrder(order: Dict, market?: Market): Order; /** * @method * @name binance#createOrders * @description *contract only* create a list of trade orders * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Place-Multiple-Orders * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Place-Multiple-Orders * @see https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/trade#place-multiple-orders * @param {Array} orders list of orders to create, each object should contain the parameters required by createOrder, namely symbol, type, side, amount, price and params * @param {object} [params] extra parameters specific to the exchange API endpoint * @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure} */ createOrders(orders: OrderRequest[], params?: Dict): Promise; /** * @method * @name binance#createOrder * @description create a trade order * @see https://developers.binance.com/en/docs/catalog/core-trading-spot-trading/api/rest-api/trade#new-order * @see https://developers.binance.com/docs/binance-spot-api-docs/testnet/rest-api/trading-endpoints#test-new-order-trade * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/New-Order * @see https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-coin-m-futures/api/rest-api/trade#new-order * @see https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/trade#new-order * @see https://developers.binance.com/en/docs/catalog/core-trading-spot-trading/api/rest-api/trade#sor-order * @see https://developers.binance.com/docs/binance-spot-api-docs/testnet/rest-api/trading-endpoints#sor * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-UM-Order * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-CM-Order * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-Margin-Order * @see https://developers.binance.com/en/docs/catalog/advanced-trading-derivatives-trading-portfolio-margin/api/rest-api/trade#new-um-algo-order * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-CM-Conditional-Order * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/New-Algo-Order * @see https://developers.binance.com/en/docs/catalog/advanced-trading-stocks-trading/api/rest-api/trade#place-equity-order * @param {string} symbol unified symbol of the market to create an order in * @param {string} type 'market' or 'limit' or 'STOP_LOSS' or 'STOP_LOSS_LIMIT' or 'TAKE_PROFIT' or 'TAKE_PROFIT_LIMIT' or 'STOP' * @param {string} side 'buy' or 'sell' * @param {float} amount how much of you want to trade in units of the base currency * @param {float} [price] the price that the order is to be fulfilled, in units of the quote currency, ignored in market orders * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {string} [params.reduceOnly] for swap and future reduceOnly is a string 'true' or 'false' that cant be sent with close position set to true or in hedge mode. For spot margin and option reduceOnly is a boolean. * @param {string} [params.marginMode] 'cross' or 'isolated', for spot margin trading * @param {boolean} [params.sor] *spot only* whether to use SOR (Smart Order Routing) or not, default is false * @param {boolean} [params.test] *spot only* whether to use the test endpoint or not, default is false * @param {float} [params.trailingPercent] the percent to trail away from the current market price * @param {float} [params.trailingTriggerPrice] the price to trigger a trailing order, default uses the price argument * @param {float} [params.triggerPrice] the price that a trigger order is triggered at * @param {float} [params.stopLossPrice] the price that a stop loss order is triggered at * @param {float} [params.takeProfitPrice] the price that a take profit order is triggered at * @param {boolean} [params.portfolioMargin] set to true if you would like to create an order in a portfolio margin account * @param {string} [params.selfTradePrevention] set unified value for stp, one of NONE, EXPIRE_MAKER, EXPIRE_TAKER or EXPIRE_BOTH * @param {float} [params.icebergAmount] set iceberg amount for limit orders * @param {string} [params.stopLossOrTakeProfit] 'stopLoss' or 'takeProfit', required for spot trailing orders * @param {string} [params.positionSide] *swap and portfolio margin only* "BOTH" for one-way mode, "LONG" for buy side of hedged mode, "SHORT" for sell side of hedged mode * @param {bool} [params.hedged] *swap and portfolio margin only* true for hedged mode, false for one way mode, default is false * @param {string} [params.clientOrderId] the clientOrderId of the order * @param {string} [params.tradingSession] *stock only* required for limit orders, RTH, EXTENDED or 24H, default is 24H * @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure} */ createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: Dict): Promise; /** * @method * @ignore * @name binance#generateClientOrderId * @description builds a fresh client order id * @param {object} [market] the market of the order, takes precedence over the other arguments * @param {string} [api] the implicit api section the order is sent to (private, sapi, fapiPrivate, dapiPrivate, eapiPrivate, ...) * @param {string} [path] the implicit api path the order is sent to, resolves the market type from the um/, cm/, margin/ and equity/ path prefixes whose api section is ambiguous, takes precedence over the api argument * @returns {string} the broker prefix followed by 22 random characters */ generateClientOrderId(market?: Market, api?: Str, path?: Str): string; /** * @method * @name binance#handleClientOrderId * @ignore * @param {object} params request params * @param {string} api the implicit api section the request is sent to * @param {string} path the implicit api path the request is sent to * @param {string} method HTTP method * @returns {object} params with the injected client order id */ handleClientOrderId(params: Dict, api: Str, path: Str, method: Str): Dict; /** * @method * @ignore * @name binance#isConditionalOrder * @description checks whether the order params describe a conditional (trigger, stop loss, take profit or trailing) order * @param {object} [params] the params passed to createOrder * @returns {boolean} true if the order is conditional */ isConditionalOrder(params?: Dict): boolean; /** * @method * @ignore * @name binance#createOrderRequest * @description helper function to build the request * @param {string} symbol unified symbol of the market to create an order in * @param {string} type 'market' or 'limit' * @param {string} side 'buy' or 'sell' * @param {float} amount how much you want to trade in units of the base currency * @param {float} [price] the price that the order is to be fulfilled, in units of the quote currency, ignored in market orders * @param {object} [params] extra parameters specific to the exchange API endpoint * @returns {object} request to be sent to the exchange */ createOrderRequest(symbol: Str, type: Str, side: Str, amount: Num, price?: Num, params?: Dict): Dict; /** * @method * @name binance#createMarketOrderWithCost * @description create a market order by providing the symbol, side and cost * @see https://developers.binance.com/en/docs/catalog/core-trading-spot-trading/api/rest-api/trade#new-order * @param {string} symbol unified symbol of the market to create an order in * @param {string} side 'buy' or 'sell' * @param {float} cost how much you want to trade in units of the quote currency * @param {object} [params] extra parameters specific to the exchange API endpoint * @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure} */ createMarketOrderWithCost(symbol: string, side: OrderSide, cost: number, params?: Dict): Promise; /** * @method * @name binance#createMarketBuyOrderWithCost * @description create a market buy order by providing the symbol and cost * @see https://developers.binance.com/en/docs/catalog/core-trading-spot-trading/api/rest-api/trade#new-order * @param {string} symbol unified symbol of the market to create an order in * @param {float} cost how much you want to trade in units of the quote currency * @param {object} [params] extra parameters specific to the exchange API endpoint * @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure} */ createMarketBuyOrderWithCost(symbol: string, cost: number, params?: Dict): Promise; /** * @method * @name binance#createMarketSellOrderWithCost * @description create a market sell order by providing the symbol and cost * @see https://developers.binance.com/en/docs/catalog/core-trading-spot-trading/api/rest-api/trade#new-order * @param {string} symbol unified symbol of the market to create an order in * @param {float} cost how much you want to trade in units of the quote currency * @param {object} [params] extra parameters specific to the exchange API endpoint * @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure} */ createMarketSellOrderWithCost(symbol: string, cost: number, params?: Dict): Promise; /** * @method * @name binance#fetchOrder * @description fetches information on an order made by the user * @see https://developers.binance.com/en/docs/catalog/core-trading-spot-trading/api/rest-api/account#get-order * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Query-Order * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Query-Order * @see https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/trade#query-single-order * @see https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-Order * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-UM-Order * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-CM-Order * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Query-Algo-Order * @see https://developers.binance.com/en/docs/catalog/advanced-trading-stocks-trading/api/rest-api/trade#equity-order-detail * @param {string} id the order id * @param {string} symbol unified symbol of the market the order was made in * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {string} [params.marginMode] 'cross' or 'isolated', for spot margin trading * @param {boolean} [params.portfolioMargin] set to true if you would like to fetch an order in a portfolio margin account * @param {boolean} [params.trigger] set to true if you would like to fetch a trigger or conditional order * @param {boolean} [params.stock] set to true if you would like to fetch tokenized stock orders * @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure} */ fetchOrder(id: string, symbol?: Str, params?: Dict): Promise; /** * @method * @name binance#fetchOrders * @description fetches information on multiple orders made by the user * @see https://developers.binance.com/en/docs/catalog/core-trading-spot-trading/api/rest-api/account#all-orders * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/All-Orders * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/All-Orders * @see https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/trade#query-option-order-history * @see https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-All-Orders * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Orders * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-CM-Orders * @see https://developers.binance.com/en/docs/catalog/advanced-trading-derivatives-trading-portfolio-margin/api/rest-api/trade#query-um-algo-order-history * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-CM-Conditional-Orders * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Query-All-Algo-Orders * @see https://developers.binance.com/en/docs/catalog/advanced-trading-stocks-trading/api/rest-api/trade#equity-order-history * @param {string} symbol unified market symbol of the market orders were made in * @param {int} [since] the earliest time in ms to fetch orders for * @param {int} [limit] the maximum number of order structures to retrieve * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {string} [params.marginMode] 'cross' or 'isolated', for spot margin trading * @param {int} [params.until] the latest time in ms to fetch orders for * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params) * @param {boolean} [params.portfolioMargin] set to true if you would like to fetch orders in a portfolio margin account * @param {boolean} [params.trigger] set to true if you would like to fetch portfolio margin account trigger or conditional orders * @param {boolean} [params.stock] set to true if you would like to fetch tokenized stock orders * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure} */ fetchOrders(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise; /** * @method * @name binance#fetchOpenOrders * @description fetch all unfilled currently open orders * @see https://developers.binance.com/en/docs/catalog/core-trading-spot-trading/api/rest-api/account#get-open-orders * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Current-All-Open-Orders * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Current-All-Open-Orders * @see https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/trade#query-current-open-option-orders * @see https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-Open-Orders * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-Current-UM-Open-Orders * @see https://developers.binance.com/en/docs/catalog/advanced-trading-derivatives-trading-portfolio-margin/api/rest-api/trade#query-all-current-um-open-algo-orders * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-Current-CM-Open-Orders * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-Current-CM-Open-Conditional-Orders * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Current-All-Algo-Open-Orders * @see https://developers.binance.com/en/docs/catalog/advanced-trading-stocks-trading/api/rest-api/trade#current-open-orders * @param {string} [symbol] unified market symbol * @param {int} [since] the earliest time in ms to fetch open orders for * @param {int} [limit] the maximum number of open orders structures to retrieve * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {string} [params.marginMode] 'cross' or 'isolated', for spot margin trading * @param {boolean} [params.portfolioMargin] set to true if you would like to fetch open orders in the portfolio margin account * @param {boolean} [params.trigger] set to true if you would like to fetch portfolio margin account conditional orders * @param {boolean} [params.stock] set to true if you would like to fetch tokenized stock orders * @param {string} [params.subType] "linear" or "inverse" * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure} */ fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise; /** * @method * @name binance#fetchOpenOrder * @description fetch an open order by the id * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Query-Current-Open-Order * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Query-Current-Open-Order * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-UM-Open-Order * @see https://developers.binance.com/en/docs/catalog/advanced-trading-derivatives-trading-portfolio-margin/api/rest-api/trade#query-current-um-open-algo-order * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-CM-Open-Order * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-CM-Open-Conditional-Order * @param {string} id order id * @param {string} symbol unified market symbol * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {string} [params.trigger] set to true if you would like to fetch portfolio margin account stop or conditional orders * @param {boolean} [params.portfolioMargin] set to true if you would like to fetch for a portfolio margin account * @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure} */ fetchOpenOrder(id: string, symbol?: Str, params?: Dict): Promise; /** * @method * @name binance#fetchClosedOrders * @description fetches information on multiple closed orders made by the user * @see https://developers.binance.com/en/docs/catalog/core-trading-spot-trading/api/rest-api/account#all-orders * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/All-Orders * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/All-Orders * @see https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/trade#query-option-order-history * @see https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-All-Orders * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Orders * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-CM-Orders * @see https://developers.binance.com/en/docs/catalog/advanced-trading-derivatives-trading-portfolio-margin/api/rest-api/trade#query-um-algo-order-history * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-CM-Conditional-Orders * @see https://developers.binance.com/en/docs/catalog/advanced-trading-stocks-trading/api/rest-api/trade#equity-order-history * @param {string} [symbol] unified market symbol of the market orders were made in * @param {int} [since] the earliest time in ms to fetch orders for * @param {int} [limit] the maximum number of order structures to retrieve * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params) * @param {boolean} [params.portfolioMargin] set to true if you would like to fetch orders in a portfolio margin account * @param {boolean} [params.trigger] set to true if you would like to fetch portfolio margin account trigger or conditional orders * @param {boolean} [params.stock] set to true if you would like to fetch tokenized stock orders * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure} */ fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise; /** * @method * @name binance#fetchCanceledOrders * @description fetches information on multiple canceled orders made by the user * @see https://developers.binance.com/en/docs/catalog/core-trading-spot-trading/api/rest-api/account#all-orders * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/All-Orders * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/All-Orders * @see https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/trade#query-option-order-history * @see https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-All-Orders * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Orders * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-CM-Orders * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Conditional-Orders * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-CM-Conditional-Orders * @see https://developers.binance.com/en/docs/catalog/advanced-trading-stocks-trading/api/rest-api/trade#equity-order-history * @param {string} [symbol] unified market symbol of the market the orders were made in * @param {int} [since] the earliest time in ms to fetch orders for * @param {int} [limit] the maximum number of order structures to retrieve * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params) * @param {boolean} [params.portfolioMargin] set to true if you would like to fetch orders in a portfolio margin account * @param {boolean} [params.trigger] set to true if you would like to fetch portfolio margin account trigger or conditional orders * @param {boolean} [params.stock] set to true if you would like to fetch tokenized stock orders * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure} */ fetchCanceledOrders(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise; /** * @method * @name binance#fetchCanceledAndClosedOrders * @description fetches information on multiple canceled orders made by the user * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#all-orders-user_data * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/All-Orders * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/All-Orders * @see https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/trade#query-option-order-history * @see https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-All-Orders * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Orders * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-CM-Orders * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Conditional-Orders * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-CM-Conditional-Orders * @see https://developers.binance.com/en/docs/catalog/advanced-trading-stocks-trading/api/rest-api/trade#equity-order-history * @param {string} [symbol] unified market symbol of the market the orders were made in * @param {int} [since] the earliest time in ms to fetch orders for * @param {int} [limit] the maximum number of order structures to retrieve * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params) * @param {boolean} [params.portfolioMargin] set to true if you would like to fetch orders in a portfolio margin account * @param {boolean} [params.trigger] set to true if you would like to fetch portfolio margin account trigger or conditional orders * @param {boolean} [params.stock] set to true if you would like to fetch tokenized stock orders * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure} */ fetchCanceledAndClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise; /** * @method * @name binance#cancelOrder * @description cancels an open order * @see https://developers.binance.com/en/docs/catalog/core-trading-spot-trading/api/rest-api/trade#delete-order * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Cancel-Order * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Cancel-Order * @see https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/trade#cancel-option-order * @see https://developers.binance.com/docs/margin_trading/trade/Margin-Account-Cancel-Order * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-UM-Order * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-CM-Order * @see https://developers.binance.com/en/docs/catalog/advanced-trading-derivatives-trading-portfolio-margin/api/rest-api/trade#cancel-um-algo-order * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-CM-Conditional-Order * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-Margin-Account-Order * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Cancel-Algo-Order * @see https://developers.binance.com/en/docs/catalog/advanced-trading-stocks-trading/api/rest-api/trade#cancel-equity-order * @param {string} id order id * @param {string} symbol unified symbol of the market the order was made in * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {boolean} [params.portfolioMargin] set to true if you would like to cancel an order in a portfolio margin account * @param {boolean} [params.trigger] set to true if you would like to cancel a portfolio margin account conditional order * @param {boolean} [params.stock] set to true if you would like to cancel a tokenized stock order * @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure} */ cancelOrder(id: string, symbol?: Str, params?: Dict): Promise; /** * @method * @name binance#cancelAllOrders * @description cancel all open orders in a market * @see https://developers.binance.com/en/docs/catalog/core-trading-spot-trading/api/rest-api/trade#delete-open-orders * @see https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/trade#cancel-all-open-orders * @see https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-coin-m-futures/api/rest-api/trade#cancel-all-open-orders * @see https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/trade#cancel-all-option-orders-on-specific-symbol * @see https://developers.binance.com/docs/margin_trading/trade/Margin-Account-Cancel-All-Open-Orders * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-All-UM-Open-Orders * @see https://developers.binance.com/en/docs/catalog/advanced-trading-derivatives-trading-portfolio-margin/api/rest-api/trade#cancel-all-um-algo-open-orders * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-All-CM-Open-Orders * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-All-CM-Open-Conditional-Orders * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-Margin-Account-All-Open-Orders-on-a-Symbol * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Cancel-All-Algo-Open-Orders * @see https://developers.binance.com/en/docs/catalog/advanced-trading-stocks-trading/api/rest-api/trade#cancel-all-equity-orders * @param {string} symbol unified market symbol of the market to cancel orders in * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {string} [params.marginMode] 'cross' or 'isolated', for spot margin trading * @param {boolean} [params.portfolioMargin] set to true if you would like to cancel orders in a portfolio margin account * @param {boolean} [params.trigger] set to true if you would like to cancel portfolio margin account conditional orders * @param {boolean} [params.stock] set to true if you would like to cancel tokenized stock orders * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure} */ cancelAllOrders(symbol?: Str, params?: Dict): Promise; /** * @method * @name binance#cancelOrders * @description cancel multiple orders * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Cancel-Multiple-Orders * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Cancel-Multiple-Orders * @param {string[]} ids order ids * @param {string} [symbol] unified market symbol * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {string[]} [params.clientOrderIds] alternative to ids, array of client order ids * * EXCHANGE SPECIFIC PARAMETERS * @param {string[]} [params.origClientOrderIdList] max length 10 e.g. ["my_id_1","my_id_2"], encode the double quotes. No space after comma * @param {int[]} [params.recvWindow] * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/?id=order-structure} */ cancelOrders(ids: string[], symbol?: Str, params?: Dict): Promise; /** * @method * @name binance#fetchOrderTrades * @description fetch all the trades made from a single order * @see https://developers.binance.com/en/docs/catalog/core-trading-spot-trading/api/rest-api/account#my-trades * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Account-Trade-List * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Account-Trade-List * @see https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-Trade-List * @param {string} id order id * @param {string} symbol unified market symbol * @param {int} [since] the earliest time in ms to fetch trades for * @param {int} [limit] the maximum number of trades to retrieve * @param {object} [params] extra parameters specific to the exchange API endpoint * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure} */ fetchOrderTrades(id: string, symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise; /** * @method * @name binance#fetchMyTrades * @description fetch all trades made by the user * @see https://developers.binance.com/en/docs/catalog/core-trading-spot-trading/api/rest-api/account#my-trades * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Account-Trade-List * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Account-Trade-List * @see https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-Trade-List * @see https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/trade#account-trade-list * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/UM-Account-Trade-List * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/CM-Account-Trade-List * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Margin-Account-Trade-List * @see https://developers.binance.com/en/docs/catalog/advanced-trading-stocks-trading/api/rest-api/trade#equity-trade-history * @param {string} [symbol] unified market symbol * @param {int} [since] the earliest time in ms to fetch trades for * @param {int} [limit] the maximum number of trades structures to retrieve * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params) * @param {int} [params.until] the latest time in ms to fetch entries for * @param {boolean} [params.portfolioMargin] set to true if you would like to fetch trades for a portfolio margin account * @param {boolean} [params.stock] set to true if you would like to fetch tokenized stock trades * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure} */ fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise; /** * @method * @name binance#fetchMyDustTrades * @description fetch all dust trades made by the user * @see https://developers.binance.com/docs/wallet/asset/dust-log * @param {string} symbol not used by fetchMyDustTrades () * @param {int} [since] the earliest time in ms to fetch my dust trades for * @param {int} [limit] the maximum number of dust trades to retrieve * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {string} [params.type] 'spot' or 'margin', default spot * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure} */ fetchMyDustTrades(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise; parseDustTrade(trade: Dict, market?: Market): { id: undefined; timestamp: Int; datetime: string | undefined; symbol: string; order: Str; type: undefined; takerOrMaker: undefined; side: string; amount: number; price: number; cost: number; fee: { currency: string; cost: number; }; info: Dict; }; /** * @method * @name binance#fetchDeposits * @description fetch all deposits made to an account * @see https://developers.binance.com/docs/wallet/capital/deposite-history * @see https://developers.binance.com/docs/fiat/rest-api/Get-Fiat-Deposit-Withdraw-History * @param {string} code unified currency code * @param {int} [since] the earliest time in ms to fetch deposits for * @param {int} [limit] the maximum number of deposits structures to retrieve * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {bool} [params.fiat] if true, only fiat deposits will be returned * @param {int} [params.until] the latest time in ms to fetch entries for * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params) * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure} */ fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: Dict): Promise; /** * @method * @name binance#fetchWithdrawals * @description fetch all withdrawals made from an account * @see https://developers.binance.com/docs/wallet/capital/withdraw-history * @see https://developers.binance.com/docs/fiat/rest-api/Get-Fiat-Deposit-Withdraw-History * @param {string} code unified currency code * @param {int} [since] the earliest time in ms to fetch withdrawals for * @param {int} [limit] the maximum number of withdrawals structures to retrieve * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {bool} [params.fiat] if true, only fiat withdrawals will be returned * @param {int} [params.until] the latest time in ms to fetch withdrawals for * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params) * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure} */ fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: Dict): Promise; parseTransactionStatusByType(status: Str, type?: Str): Str; parseTransaction(transaction: Dict, currency?: Currency): Transaction; parseTransferStatus(status: Str): Str; parseTransfer(transfer: Dict, currency?: Currency): TransferEntry; parseIncome(income: Dict, market?: Market): object; /** * @method * @name binance#transfer * @description transfer currency internally between wallets on the same account * @see https://developers.binance.com/en/docs/catalog/core-trading-wallet/api/rest-api/asset#user-universal-transfer * @param {string} code unified currency code * @param {float} amount amount to transfer * @param {string} fromAccount account to transfer from * @param {string} toAccount account to transfer to * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {string} [params.type] exchange specific transfer type * @param {string} [params.symbol] the unified symbol, required for isolated margin transfers * @returns {object} a [transfer structure]{@link https://docs.ccxt.com/?id=transfer-structure} */ transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?: Dict): Promise; /** * @method * @name binance#fetchTransfers * @description fetch a history of internal transfers made on an account * @see https://developers.binance.com/docs/wallet/asset/query-user-universal-transfer * @see https://developers.binance.com/docs/pay/rest-api/Get-Pay-Trade-History * @param {string} code unified currency code of the currency transferred * @param {int} [since] the earliest time in ms to fetch transfers for * @param {int} [limit] the maximum number of transfers structures to retrieve * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {int} [params.until] the latest time in ms to fetch transfers for * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params) * @param {boolean} [params.internal] default false, when true will fetch pay trade history * @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/?id=transfer-structure} */ fetchTransfers(code?: Str, since?: Int, limit?: Int, params?: Dict): Promise; /** * @method * @name binance#fetchDepositAddress * @description fetch the deposit address for a currency associated with this account * @see https://developers.binance.com/docs/wallet/capital/deposite-address * @param {string} code unified currency code * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {string} [params.network] network for fetch deposit address * @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure} */ fetchDepositAddress(code: string, params?: Dict): Promise; parseDepositAddress(response: Dict, currency?: Currency): DepositAddress; /** * @method * @name binance#fetchTransactionFees * @deprecated * @description please use fetchDepositWithdrawFees instead * @see https://developers.binance.com/docs/wallet/capital/all-coins-info * @param {string[]|undefined} codes not used by fetchTransactionFees () * @param {object} [params] extra parameters specific to the exchange API endpoint * @returns {object[]} a list of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure} */ fetchTransactionFees(codes?: Strings, params?: Dict): Promise<{ withdraw: Dict; deposit: {}; info: List; }>; /** * @method * @name binance#fetchDepositWithdrawFees * @description fetch deposit and withdraw fees * @see https://developers.binance.com/docs/wallet/capital/all-coins-info * @param {string[]|undefined} codes not used by fetchDepositWithdrawFees () * @param {object} [params] extra parameters specific to the exchange API endpoint * @returns {object[]} a list of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure} */ fetchDepositWithdrawFees(codes?: Strings, params?: Dict): Promise; parseDepositWithdrawFee(fee: any, currency?: Currency): any; /** * @method * @name binance#withdraw * @description make a withdrawal * @see https://developers.binance.com/docs/wallet/capital/withdraw * @param {string} code unified currency code * @param {float} amount the amount to withdraw * @param {string} address the address to withdraw to * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {string} [params.tag] memo / destination tag, required for currencies in options['withdrawTagRequiredCurrencies'] * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure} */ withdraw(code: string, amount: number, address: string, params?: Dict): Promise; parseTradingFee(fee: Dict, market?: Market): TradingFeeInterface; /** * @method * @name binance#fetchTradingFee * @description fetch the trading fees for a market * @see https://developers.binance.com/docs/wallet/asset/trade-fee * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/User-Commission-Rate * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/User-Commission-Rate * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-User-Commission-Rate-for-UM * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-User-Commission-Rate-for-CM * @param {string} symbol unified market symbol * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {boolean} [params.portfolioMargin] set to true if you would like to fetch trading fees in a portfolio margin account * @param {string} [params.subType] "linear" or "inverse" * @returns {object} a [fee structure]{@link https://docs.ccxt.com/?id=fee-structure} */ fetchTradingFee(symbol: string, params?: Dict): Promise; /** * @method * @name binance#fetchTradingFees * @description fetch the trading fees for multiple markets * @see https://developers.binance.com/docs/wallet/asset/trade-fee * @see https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-coin-m-futures/api/rest-api/account#account-information * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Config * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {string} [params.subType] "linear" or "inverse" * @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure} indexed by market symbols */ fetchTradingFees(params?: Dict): Promise; /** * @method * @name binance#futuresTransfer * @ignore * @description transfer between futures account * @param {string} code unified currency code * @param {float} amount the amount to transfer * @param {string} type 1 - transfer from spot account to USDT-Ⓜ futures account, 2 - transfer from USDT-Ⓜ futures account to spot account, 3 - transfer from spot account to COIN-Ⓜ futures account, 4 - transfer from COIN-Ⓜ futures account to spot account * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {float} params.recvWindow * @returns {object} a [transfer structure]{@link https://docs.ccxt.com/?id=futures-transfer-structure} */ futuresTransfer(code: string, amount: any, type: number, params?: Dict): Promise; /** * @method * @name binance#fetchFundingRate * @description fetch the current funding rate * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Mark-Price * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Index-Price-and-Mark-Price * @param {string} symbol unified market symbol * @param {object} [params] extra parameters specific to the exchange API endpoint * @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/?id=funding-rate-structure} */ fetchFundingRate(symbol: string, params?: Dict): Promise; /** * @method * @name binance#fetchFundingRateHistory * @description fetches historical funding rate prices * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Get-Funding-Rate-History * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Get-Funding-Rate-History-of-Perpetual-Futures * @param {string} symbol unified symbol of the market to fetch the funding rate history for * @param {int} [since] timestamp in ms of the earliest funding rate to fetch * @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure} to fetch * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {int} [params.until] timestamp in ms of the latest funding rate * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params) * @param {string} [params.subType] "linear" or "inverse" * @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure} */ fetchFundingRateHistory(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise; parseFundingRateHistory(contract: any, market?: Market): FundingRateHistory; /** * @method * @name binance#fetchFundingRates * @description fetch the funding rate for multiple markets * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Mark-Price * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Index-Price-and-Mark-Price * @param {string[]|undefined} symbols list of unified market symbols * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {string} [params.subType] "linear" or "inverse" * @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rates-structure}, indexed by market symbols */ fetchFundingRates(symbols?: Strings, params?: Dict): Promise; parseFundingRate(contract: any, market?: Market): FundingRate; parseAccountPositions(account: Dict, filterClosed?: boolean): Position[]; parseAccountPosition(position: Dict, market?: Market): { info: Dict; id: undefined; symbol: Str; timestamp: Int; datetime: string | undefined; initialMargin: number; initialMarginPercentage: number; maintenanceMargin: number; maintenanceMarginPercentage: number; entryPrice: Num; notional: number; leverage: number; unrealizedPnl: number; contracts: number; contractSize: Num; marginRatio: Num; liquidationPrice: Num; markPrice: undefined; collateral: number; marginMode: string; side: Str; hedged: boolean; percentage: Num; }; parsePositionRisk(position: Dict, market?: Market): Position; loadLeverageBrackets(reload?: boolean, params?: Dict): Promise; /** * @method * @name binance#fetchLeverageTiers * @description retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Notional-and-Leverage-Brackets * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Notional-Bracket-for-Symbol * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/UM-Notional-and-Leverage-Brackets * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/CM-Notional-and-Leverage-Brackets * @param {string[]|undefined} symbols list of unified market symbols * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {boolean} [params.portfolioMargin] set to true if you would like to fetch the leverage tiers for a portfolio margin account * @param {string} [params.subType] "linear" or "inverse" * @returns {object} a dictionary of [leverage tiers structures]{@link https://docs.ccxt.com/?id=leverage-tiers-structure}, indexed by market symbols */ fetchLeverageTiers(symbols?: Strings, params?: Dict): Promise; parseMarketLeverageTiers(info: any, market?: Market): LeverageTier[]; /** * @method * @name binance#fetchPosition * @description fetch data on an open position * @see https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/trade#option-position-information * @param {string} symbol unified market symbol of the market the position is held in * @param {object} [params] extra parameters specific to the exchange API endpoint * @returns {object} a [position structure]{@link https://docs.ccxt.com/?id=position-structure} */ fetchPosition(symbol: string, params?: Dict): Promise; /** * @method * @name binance#fetchOptionPositions * @description fetch data on open options positions * @see https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/trade#option-position-information * @param {string[]|undefined} symbols list of unified market symbols * @param {object} [params] extra parameters specific to the exchange API endpoint * @returns {object[]} a list of [position structures]{@link https://docs.ccxt.com/?id=position-structure} */ fetchOptionPositions(symbols?: Strings, params?: Dict): Promise; parseOptionPosition(position: Dict, market?: Market): Position; /** * @method * @name binance#fetchPositions * @description fetch all open positions * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V2 * @see https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-coin-m-futures/api/rest-api/account#account-information * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Position-Information-V2 * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Position-Information * @see https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/trade#option-position-information * @param {string[]} [symbols] list of unified market symbols * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {object} [params.params] extra parameters specific to the exchange API endpoint * @param {string} [params.method] method name to call, "positionRisk", "account" or "option", default is "positionRisk" * @param {bool} [params.useV2] set to true if you want to use the obsolete endpoint, where some more additional fields were provided * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/?id=position-structure} */ fetchPositions(symbols?: Strings, params?: Dict): Promise; /** * @method * @name binance#fetchAccountPositions * @ignore * @description fetch account positions * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V2 * @see https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-coin-m-futures/api/rest-api/account#account-information * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V3 * @see https://developers.binance.com/en/docs/catalog/advanced-trading-derivatives-trading-portfolio-margin/api/rest-api/account#get-um-account-detail-v2 * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-CM-Account-Detail * @param {string[]} [symbols] list of unified market symbols * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {boolean} [params.portfolioMargin] set to true if you would like to fetch positions in a portfolio margin account * @param {string} [params.subType] "linear" or "inverse" * @param {boolean} [params.filterClosed] set to true if you would like to filter out closed positions, default is false * @param {boolean} [params.useV2] set to true if you want to use obsolete endpoint, where some more additional fields were provided * @returns {object} data on account positions */ fetchAccountPositions(symbols?: Strings, params?: Dict): Promise; /** * @method * @name binance#fetchPositionsRisk * @ignore * @description fetch positions risk * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Position-Information-V2 * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Position-Information * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Query-UM-Position-Information * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Query-CM-Position-Information * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Position-Information-V3 * @param {string[]|undefined} symbols list of unified market symbols * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {boolean} [params.portfolioMargin] set to true if you would like to fetch positions for a portfolio margin account * @param {string} [params.subType] "linear" or "inverse" * @param {bool} [params.useV2] set to true if you want to use the obsolete endpoint, where some more additional fields were provided * @returns {object} data on the positions risk */ fetchPositionsRisk(symbols?: Strings, params?: Dict): Promise; /** * @method * @name binance#fetchFundingHistory * @description fetch the history of funding payments paid and received on this account * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Get-Income-History * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Get-Income-History * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Income-History * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-CM-Income-History * @param {string} symbol unified market symbol * @param {int} [since] the earliest time in ms to fetch funding history for * @param {int} [limit] the maximum number of funding history structures to retrieve * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {int} [params.until] timestamp in ms of the latest funding history entry * @param {boolean} [params.portfolioMargin] set to true if you would like to fetch the funding history for a portfolio margin account * @param {string} [params.subType] "linear" or "inverse" * @param {string} [params.incomeType] the income type to request, defaults to FUNDING_FEE, set to SPECIAL_FUNDING_FEE for the additional funding fees generated by tokenized-stock dividends * @returns {object} a [funding history structure]{@link https://docs.ccxt.com/?id=funding-history-structure} */ fetchFundingHistory(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise; /** * @method * @name binance#setLeverage * @description set the level of leverage for a market * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Change-Initial-Leverage * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Change-Initial-Leverage * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Change-UM-Initial-Leverage * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Change-CM-Initial-Leverage * @param {float} leverage the rate of leverage * @param {string} symbol unified market symbol * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {boolean} [params.portfolioMargin] set to true if you would like to set the leverage for a trading pair in a portfolio margin account * @returns {object} response from the exchange */ setLeverage(leverage: int, symbol?: Str, params?: Dict): Promise; /** * @method * @name binance#setMarginMode * @description set margin mode to 'cross' or 'isolated' * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Change-Margin-Type * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Change-Margin-Type * @param {string} marginMode 'cross' or 'isolated' * @param {string} symbol unified market symbol * @param {object} [params] extra parameters specific to the exchange API endpoint * @returns {object} response from the exchange */ setMarginMode(marginMode: string, symbol?: Str, params?: Dict): Promise; /** * @method * @name binance#setPositionMode * @description set hedged to true or false for a market * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Change-Position-Mode * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Change-Position-Mode * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Change-UM-Position-Mode * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Change-CM-Position-Mode * @param {bool} hedged set to true to use dualSidePosition * @param {string} symbol not used by setPositionMode () * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {boolean} [params.portfolioMargin] set to true if you would like to set the position mode for a portfolio margin account * @param {string} [params.subType] "linear" or "inverse" * @returns {object} response from the exchange */ setPositionMode(hedged: boolean, symbol?: Str, params?: Dict): Promise; /** * @method * @name binance#fetchLeverages * @description fetch the set leverage for all markets * @see https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-coin-m-futures/api/rest-api/account#account-information * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Account-Detail * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-CM-Account-Detail * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Symbol-Config * @param {string[]} [symbols] a list of unified market symbols * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {string} [params.subType] "linear" or "inverse" * @returns {object} a list of [leverage structures]{@link https://docs.ccxt.com/?id=leverage-structure} */ fetchLeverages(symbols?: Strings, params?: Dict): Promise; parseLeverage(leverage: Dict, market?: Market): Leverage; /** * @method * @name binance#fetchSettlementHistory * @description fetches historical settlement records * @see https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-data#historical-exercise-records * @param {string} symbol unified market symbol of the settlement history * @param {int} [since] timestamp in ms * @param {int} [limit] number of records, default 100, max 100 * @param {object} [params] exchange specific params * @returns {object[]} a list of [settlement history objects]{@link https://docs.ccxt.com/?id=settlement-history-structure} */ fetchSettlementHistory(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise; /** * @method * @name binance#fetchMySettlementHistory * @description fetches historical settlement records of the user * @see https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/trade#user-exercise-record * @param {string} symbol unified market symbol of the settlement history * @param {int} [since] timestamp in ms * @param {int} [limit] number of records * @param {object} [params] exchange specific params * @returns {object[]} a list of [settlement history objects] */ fetchMySettlementHistory(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise; parseSettlement(settlement: Dict, market: Market): { info: Dict; symbol: string; price: number; timestamp: Int; datetime: string | undefined; }; parseSettlements(settlements: any[], market: Market): List; /** * @method * @name binance#fetchLedgerEntry * @description fetch the history of changes, actions done by the user or operations that altered the balance of the user * @see https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/account#account-funding-flow * @param {string} id the identification number of the ledger entry * @param {string} code unified currency code * @param {object} [params] extra parameters specific to the exchange API endpoint * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger-entry-structure} */ fetchLedgerEntry(id: string, code?: Str, params?: Dict): Promise; /** * @method * @name binance#fetchLedger * @description fetch the history of changes, actions done by the user or operations that altered the balance of the user * @see https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/account#account-funding-flow * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Get-Income-History * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Get-Income-History * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Income-History * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-CM-Income-History * @param {string} [code] unified currency code * @param {int} [since] timestamp in ms of the earliest ledger entry * @param {int} [limit] max number of ledger entries to return * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {int} [params.until] timestamp in ms of the latest ledger entry * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params) * @param {boolean} [params.portfolioMargin] set to true if you would like to fetch the ledger for a portfolio margin account * @param {string} [params.subType] "linear" or "inverse" * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger-entry-structure} */ fetchLedger(code?: Str, since?: Int, limit?: Int, params?: Dict): Promise; parseLedgerEntry(item: Dict, currency?: Currency): LedgerEntry; parseLedgerEntryType(type: Str): Str; getNetworkCodeByNetworkUrl(currencyCode: Str, depositUrl?: Str): Str; getBaseDomainFromUrl(url: Str): Str; sign(path: string, api?: any, method?: string, params?: Dict, headers?: NullableDict, body?: Str): Dict; getExceptionsByUrl(url: Str, exactOrBroad: string): import("./base/types.js").Dictionary; handleErrors(code: int, reason: string, url: string, method: string, headers: Dict, body: string, response: any, requestHeaders: any, requestBody: any): undefined; calculateRateLimiterCost(api: any, method: any, path: any, params: any, config?: Dict): any; request(path: string, api?: string, method?: any, params?: Dict, headers?: any, body?: any, config?: Dict): Promise; modifyMarginHelper(symbol: string, amount: any, addOrReduce: any, params?: Dict): Promise; parseMarginModification(data: Dict, market?: Market): MarginModification; /** * @method * @name binance#reduceMargin * @description remove margin from a position * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Modify-Isolated-Position-Margin * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Modify-Isolated-Position-Margin * @param {string} symbol unified market symbol * @param {float} amount the amount of margin to remove * @param {object} [params] extra parameters specific to the exchange API endpoint * @returns {object} a [margin structure]{@link https://docs.ccxt.com/?id=margin-structure} */ reduceMargin(symbol: string, amount: number, params?: Dict): Promise; /** * @method * @name binance#addMargin * @description add margin * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Modify-Isolated-Position-Margin * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Modify-Isolated-Position-Margin * @param {string} symbol unified market symbol * @param {float} amount amount of margin to add * @param {object} [params] extra parameters specific to the exchange API endpoint * @returns {object} a [margin structure]{@link https://docs.ccxt.com/?id=margin-structure} */ addMargin(symbol: string, amount: number, params?: Dict): Promise; /** * @method * @name binance#fetchCrossBorrowRate * @description fetch the rate of interest to borrow a currency for margin trading * @see https://developers.binance.com/docs/margin_trading/borrow-and-repay/Query-Margin-Interest-Rate-History * @param {string} code unified currency code * @param {object} [params] extra parameters specific to the exchange API endpoint * @returns {object} a [borrow rate structure]{@link https://docs.ccxt.com/?id=borrow-rate-structure} */ fetchCrossBorrowRate(code: string, params?: Dict): Promise; /** * @method * @name binance#fetchIsolatedBorrowRate * @description fetch the rate of interest to borrow a currency for margin trading * @see https://developers.binance.com/docs/margin_trading/account/Query-Isolated-Margin-Fee-Data * @param {string} symbol unified market symbol * @param {object} [params] extra parameters specific to the exchange API endpoint * * EXCHANGE SPECIFIC PARAMETERS * @param {object} [params.vipLevel] user's current specific margin data will be returned if viplevel is omitted * @returns {object} an [isolated borrow rate structure]{@link https://docs.ccxt.com/?id=isolated-borrow-rate-structure} */ fetchIsolatedBorrowRate(symbol: string, params?: Dict): Promise; /** * @method * @name binance#fetchIsolatedBorrowRates * @description fetch the borrow interest rates of all currencies * @see https://developers.binance.com/docs/margin_trading/account/Query-Isolated-Margin-Fee-Data * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {object} [params.symbol] unified market symbol * * EXCHANGE SPECIFIC PARAMETERS * @param {object} [params.vipLevel] user's current specific margin data will be returned if viplevel is omitted * @returns {object} a [borrow rate structure]{@link https://docs.ccxt.com/?id=borrow-rate-structure} */ fetchIsolatedBorrowRates(params?: Dict): Promise; /** * @method * @name binance#fetchBorrowRateHistory * @description retrieves a history of a currencies borrow interest rate at specific time slots * @see https://developers.binance.com/docs/margin_trading/borrow-and-repay/Query-Margin-Interest-Rate-History * @param {string} code unified currency code * @param {int} [since] timestamp for the earliest borrow rate * @param {int} [limit] the maximum number of [borrow rate structures]{@link https://docs.ccxt.com/?id=borrow-rate-structure} to retrieve * @param {object} [params] extra parameters specific to the exchange API endpoint * @returns {object[]} an array of [borrow rate structures]{@link https://docs.ccxt.com/?id=borrow-rate-structure} */ fetchBorrowRateHistory(code: string, since?: Int, limit?: Int, params?: Dict): Promise; parseBorrowRate(info: any, currency?: Currency): { currency: Str; rate: Num; period: number; timestamp: Int; datetime: string | undefined; info: any; }; parseIsolatedBorrowRate(info: Dict, market?: Market): IsolatedBorrowRate; /** * @method * @name binance#createGiftCode * @description create gift code * @see https://developers.binance.com/docs/gift_card/market-data/Create-a-single-token-gift-card * @param {string} code gift code * @param {float} amount amount of currency for the gift * @param {object} [params] extra parameters specific to the exchange API endpoint * @returns {object} The gift code id, code, currency and amount */ createGiftCode(code: string, amount: any, params?: Dict): Promise; /** * @method * @name binance#redeemGiftCode * @description redeem gift code * @see https://developers.binance.com/docs/gift_card/market-data/Redeem-a-Binance-Gift-Card * @param {string} giftcardCode * @param {object} [params] extra parameters specific to the exchange API endpoint * @returns {object} response from the exchange */ redeemGiftCode(giftcardCode: any, params?: Dict): Promise; /** * @method * @name binance#verifyGiftCode * @description verify gift code * @see https://developers.binance.com/docs/gift_card/market-data/Verify-Binance-Gift-Card-by-Gift-Card-Number * @param {string} id reference number id * @param {object} [params] extra parameters specific to the exchange API endpoint * @returns {object} response from the exchange */ verifyGiftCode(id: string, params?: Dict): Promise; /** * @method * @name binance#fetchBorrowInterest * @description fetch the interest owed by the user for borrowing currency for margin trading * @see https://developers.binance.com/docs/margin_trading/borrow-and-repay/Get-Interest-History * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-Margin-BorrowLoan-Interest-History * @param {string} [code] unified currency code * @param {string} [symbol] unified market symbol when fetch interest in isolated markets * @param {int} [since] the earliest time in ms to fetch borrrow interest for * @param {int} [limit] the maximum number of structures to retrieve * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {boolean} [params.portfolioMargin] set to true if you would like to fetch the borrow interest in a portfolio margin account * @returns {object[]} a list of [borrow interest structures]{@link https://docs.ccxt.com/?id=borrow-interest-structure} */ fetchBorrowInterest(code?: Str, symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise; parseBorrowInterest(info: Dict, market?: Market): BorrowInterest; /** * @method * @name binance#repayCrossMargin * @description repay borrowed margin and interest * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Margin-Account-Repay * @see https://developers.binance.com/docs/margin_trading/borrow-and-repay/Margin-Account-Borrow-Repay * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Margin-Account-Repay-Debt * @param {string} code unified currency code of the currency to repay * @param {float} amount the amount to repay * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {boolean} [params.portfolioMargin] set to true if you would like to repay margin in a portfolio margin account * @param {string} [params.repayCrossMarginMethod] *portfolio margin only* 'papiPostRepayLoan' (default), 'papiPostMarginRepayDebt' (alternative) * @param {string} [params.specifyRepayAssets] *portfolio margin papiPostMarginRepayDebt only* specific asset list to repay debt * @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/?id=margin-loan-structure} */ repayCrossMargin(code: string, amount: number, params?: Dict): Promise; /** * @method * @name binance#repayIsolatedMargin * @description repay borrowed margin and interest * @see https://developers.binance.com/docs/margin_trading/borrow-and-repay/Margin-Account-Borrow-Repay * @param {string} symbol unified market symbol, required for isolated margin * @param {string} code unified currency code of the currency to repay * @param {float} amount the amount to repay * @param {object} [params] extra parameters specific to the exchange API endpoint * @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/?id=margin-loan-structure} */ repayIsolatedMargin(symbol: string, code: string, amount: number, params?: Dict): Promise; /** * @method * @name binance#borrowCrossMargin * @description create a loan to borrow margin * @see https://developers.binance.com/docs/margin_trading/borrow-and-repay/Margin-Account-Borrow-Repay * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Margin-Account-Borrow * @param {string} code unified currency code of the currency to borrow * @param {float} amount the amount to borrow * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {boolean} [params.portfolioMargin] set to true if you would like to borrow margin in a portfolio margin account * @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/?id=margin-loan-structure} */ borrowCrossMargin(code: string, amount: number, params?: Dict): Promise; /** * @method * @name binance#borrowIsolatedMargin * @description create a loan to borrow margin * @see https://developers.binance.com/docs/margin_trading/borrow-and-repay/Margin-Account-Borrow-Repay * @param {string} symbol unified market symbol, required for isolated margin * @param {string} code unified currency code of the currency to borrow * @param {float} amount the amount to borrow * @param {object} [params] extra parameters specific to the exchange API endpoint * @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/?id=margin-loan-structure} */ borrowIsolatedMargin(symbol: string, code: string, amount: number, params?: Dict): Promise; parseMarginLoan(info: Dict, currency?: Currency): MarginLoan; /** * @method * @name binance#fetchOpenInterestHistory * @description Retrieves the open interest history of a currency * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Open-Interest-Statistics * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Open-Interest-Statistics * @param {string} symbol Unified CCXT market symbol * @param {string} timeframe "5m","15m","30m","1h","2h","4h","6h","12h", or "1d" * @param {int} [since] the time(ms) of the earliest record to retrieve as a unix timestamp * @param {int} [limit] default 30, max 500 * @param {object} [params] exchange specific parameters * @param {int} [params.until] the time(ms) of the latest record to retrieve as a unix timestamp * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params) * @returns {object} an array of [open interest structure]{@link https://docs.ccxt.com/?id=open-interest-structure} */ fetchOpenInterestHistory(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: Dict): Promise; /** * @method * @name binance#fetchOpenInterest * @description retrieves the open interest of a contract trading pair * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Open-Interest * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Open-Interest * @see https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-data#open-interest * @param {string} symbol unified CCXT market symbol * @param {object} [params] exchange specific parameters * @returns {object} an open interest structure{@link https://docs.ccxt.com/?id=open-interest-structure} */ fetchOpenInterest(symbol: string, params?: Dict): Promise; parseOpenInterest(interest: any, market?: Market): OpenInterest; /** * @method * @name binance#fetchMyLiquidations * @description retrieves the users liquidated positions * @see https://developers.binance.com/docs/margin_trading/trade/Get-Force-Liquidation-Record * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Users-Force-Orders * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Users-Force-Orders * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Users-UM-Force-Orders * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Users-CM-Force-Orders * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Users-Margin-Force-Orders * @param {string} [symbol] unified CCXT market symbol * @param {int} [since] the earliest time in ms to fetch liquidations for * @param {int} [limit] the maximum number of liquidation structures to retrieve * @param {object} [params] exchange specific parameters for the binance api endpoint * @param {int} [params.until] timestamp in ms of the latest liquidation * @param {boolean} [params.paginate] *spot only* default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params) * @param {boolean} [params.portfolioMargin] set to true if you would like to fetch liquidations in a portfolio margin account * @param {string} [params.type] "spot" * @param {string} [params.subType] "linear" or "inverse" * @returns {object} an array of [liquidation structures]{@link https://docs.ccxt.com/?id=liquidation-structure} */ fetchMyLiquidations(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise; parseLiquidation(liquidation: any, market?: Market): Liquidation; /** * @method * @name binance#fetchGreeks * @description fetches an option contracts greeks, financial metrics used to measure the factors that affect the price of an options contract * @see https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-data#option-mark-price * @param {string} symbol unified symbol of the market to fetch greeks for * @param {object} [params] extra parameters specific to the exchange API endpoint * @returns {object} a [greeks structure]{@link https://docs.ccxt.com/?id=greeks-structure} */ fetchGreeks(symbol: string, params?: Dict): Promise; /** * @method * @name binance#fetchAllGreeks * @description fetches all option contracts greeks, financial metrics used to measure the factors that affect the price of an options contract * @see https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-data#option-mark-price * @param {string[]} [symbols] unified symbols of the markets to fetch greeks for, all markets are returned if not assigned * @param {object} [params] extra parameters specific to the exchange API endpoint * @returns {object} a dictionary of [greeks structures]{@link https://docs.ccxt.com/?id=greeks-structure} indexed by market symbol */ fetchAllGreeks(symbols?: Strings, params?: Dict): Promise; parseGreeks(greeks: Dict, market?: Market): Greeks; fetchTradingLimits(symbols?: Strings, params?: Dict): Promise; /** * @method * @name binance#fetchPositionMode * @description fetchs the position mode, hedged or one way, hedged for binance is set identically for all linear markets or all inverse markets * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Get-Current-Position-Mode * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Get-Current-Position-Mode * @param {string} symbol unified symbol of the market to fetch the order book for * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {string} [params.subType] "linear" or "inverse" * @returns {object} an object detailing whether the market is in hedged or one-way mode */ fetchPositionMode(symbol?: Str, params?: Dict): Promise; /** * @method * @name binance#fetchMarginModes * @description fetches margin modes ("isolated" or "cross") that the market for the symbol in in, with symbol=undefined all markets for a subType (linear/inverse) are returned * @see https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-coin-m-futures/api/rest-api/account#account-information * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Symbol-Config * @param {string[]} symbols unified market symbols * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {string} [params.subType] "linear" or "inverse" * @returns {object} a list of [margin mode structures]{@link https://docs.ccxt.com/?id=margin-mode-structure} */ fetchMarginModes(symbols?: Strings, params?: Dict): Promise; /** * @method * @name binance#fetchMarginMode * @description fetches the margin mode of a specific symbol * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Symbol-Config * @see https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-coin-m-futures/api/rest-api/account#account-information * @param {string} symbol unified symbol of the market the order was made in * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {string} [params.subType] "linear" or "inverse" * @returns {object} a [margin mode structure]{@link https://docs.ccxt.com/?id=margin-mode-structure} */ fetchMarginMode(symbol: string, params?: Dict): Promise; parseMarginMode(marginMode: Dict, market?: Market): MarginMode; /** * @method * @name binance#fetchOption * @description fetches option data that is commonly found in an option chain * @see https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-data#ticker24hr-price-change-statistics * @param {string} symbol unified market symbol * @param {object} [params] extra parameters specific to the exchange API endpoint * @returns {object} an [option chain structure]{@link https://docs.ccxt.com/?id=option-chain-structure} */ fetchOption(symbol: string, params?: Dict): Promise