import Exchange from './abstract/derive.js'; import type { Dict, List, Currencies, Transaction, Currency, CurrencyInterface, FundingHistory, Market, Str, Strings, Ticker, Int, int, Trade, OrderType, OrderSide, Num, FundingRateHistory, FundingRate, Balances, Order, Position, NullableDict, OHLCV, OpenInterest, Account, TransferEntry, Greeks, Option, BorrowInterest } from './base/types.js'; /** * @class derive * @augments Exchange */ export default class derive extends Exchange { describe(): any; setSandboxMode(enable: boolean): void; /** * @method * @name derive#fetchTime * @description fetches the current integer timestamp in milliseconds from the exchange server * @see https://docs.derive.xyz/api-reference/system/publicget_time * @param {object} [params] extra parameters specific to the exchange API endpoint * @returns {int} the current integer timestamp in milliseconds from the exchange server */ fetchTime(params?: Dict): Promise; /** * @method * @name derive#fetchAccounts * @description fetch all the subaccounts associated with the wallet * @see https://docs.derive.xyz/api-reference/subaccounts/privateget_subaccounts * @param {object} [params] extra parameters specific to the exchange API endpoint * @returns {object[]} a list of [account structures]{@link https://docs.ccxt.com/?id=account-structure} */ fetchAccounts(params?: Dict): Promise; /** * @method * @name derive#fetchCurrencies * @description fetches all available currencies on an exchange * @see https://docs.derive.xyz/api-reference/market-data/publicget_all_currencies * @param {object} [params] extra parameters specific to the exchange API endpoint * @returns {object} an associative dictionary of currencies */ fetchCurrencies(params?: Dict): Promise; parseCurrency(rawCurrency: Dict): CurrencyInterface; /** * @method * @name derive#fetchMarkets * @description retrieves data on all markets for derive * @see https://docs.derive.xyz/api-reference/market-data/publicget_all_instruments * @param {object} [params] extra parameters specific to the exchange API endpoint * @returns {object[]} an array of objects representing market data */ fetchMarkets(params?: Dict): Promise; fetchSpotMarkets(params?: Dict): Promise; fetchSwapMarkets(params?: Dict): Promise; fetchOptionMarkets(params?: Dict): Promise; /** * @method * @ignore * @name derive#getMarketsPaginated * @description fetches every page of public/get_all_instruments for the given filter and parses the instruments; v3 paginates the endpoint, options alone exceed 5000 entries * @param {object} request the base request with the instrument_type filter * @param {object} [params] extra parameters specific to the exchange API endpoint * @returns {object[]} an array of raw instrument entries */ getMarketsPaginated(request: Dict, params?: Dict): Promise; parseMarket(market: Dict): Market; /** * @method * @name derive#fetchTicker * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market * @see https://docs.derive.xyz/api-reference/market-data/publicget_ticker * @param {string} symbol unified symbol of the market to fetch the ticker for * @param {object} [params] extra parameters specific to the exchange API endpoint * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure} */ fetchTicker(symbol: string, params?: Dict): Promise; /** * @method * @name derive#fetchOpenInterest * @description retrieves the open interest of a contract market * @see https://docs.derive.xyz/api-reference/market-data/publicget_ticker * @param {string} symbol unified symbol of the market to fetch the open interest for * @param {object} [params] extra parameters specific to the exchange API endpoint * @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 derive#fetchGreeks * @description fetches an option contracts greeks, financial metrics used to measure the factors that affect the price of an options contract * @see https://docs.derive.xyz/api-reference/market-data/publicget_ticker * @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; parseGreeks(greeks: Dict, market?: Market): Greeks; /** * @method * @name derive#fetchOption * @description fetches option data that is commonly found in an option chain * @see https://docs.derive.xyz/api-reference/market-data/publicget_ticker * @param {string} symbol unified market symbol * @param {object} [params] extra parameters specific to the exchange API endpoint * @returns {object} an [option structure]{@link https://docs.ccxt.com/?id=option-structure} */ fetchOption(symbol: string, params?: Dict): Promise