@kraken-crypto/ccxt
Version:
A cryptocurrency trading API with more than 100 exchanges in JavaScript / TypeScript / Python / C# / PHP / Go
499 lines (498 loc) • 31.8 kB
TypeScript
import Exchange from './abstract/deepcoin.js';
import type { Balances, Currency, DepositAddress, Dict, FundingRate, FundingRates, int, Int, LedgerEntry, Market, Num, OHLCV, Order, OrderBook, OrderSide, OrderType, Position, Str, Strings, Ticker, Tickers, Trade, Transaction, TransferEntry } from './base/types.js';
/**
* @class deepcoin
* @augments Exchange
*/
export default class deepcoin extends Exchange {
describe(): any;
handleMarketTypeAndParams(methodName: string, market?: Market, params?: {}, defaultValue?: any): any;
convertToInstrumentType(type: any): string;
/**
* @method
* @name deepcoin#fetchMarkets
* @see https://www.deepcoin.com/docs/DeepCoinMarket/getBaseInfo
* @description retrieves data on all markets for okcoin
* @param {object} [params] extra parameters specific to the exchange API endpoint
* @returns {object[]} an array of objects representing market data
*/
fetchMarkets(params?: {}): Promise<Market[]>;
fetchMarketsByType(type: any, params?: {}): Promise<import("./base/types.js").MarketInterface[]>;
parseMarket(market: Dict): Market;
setMarkets(markets: any, currencies?: any): import("./base/types.js").Dictionary<any>;
/**
* @method
* @name deepcoin#fetchOrderBook
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
* @see https://www.deepcoin.com/docs/DeepCoinMarket/marketBooks
* @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
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
*/
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
/**
* @method
* @name deepcoin#fetchOHLCV
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
* @see https://www.deepcoin.com/docs/DeepCoinMarket/getKlineData
* @see https://www.deepcoin.com/docs/DeepCoinMarket/getIndexKlineData
* @see https://www.deepcoin.com/docs/DeepCoinMarket/getMarkKlineData
* @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 {int} [params.until] timestamp in ms of the latest candle to fetch
* @param {string} [params.price] "mark" or "index" for mark price and index price candles
* @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?: {}): Promise<OHLCV[]>;
/**
* @method
* @name deepcoin#fetchTickers
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
* @see https://www.deepcoin.com/docs/DeepCoinMarket/getMarketTickers
* @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
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
*/
fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
parseTicker(ticker: Dict, market?: Market): Ticker;
/**
* @method
* @name deepcoin#fetchTrades
* @description get the list of most recent trades for a particular symbol
* @see https://www.deepcoin.com/docs/DeepCoinMarket/getTrades
* @param {string} symbol unified symbol of the market to fetch trades for
* @param {int} [since] timestamp in ms of the earliest trade to fetch
* @param {int} [limit] the maximum amount of trades to fetch (default 100, max 500)
* @param {object} [params] extra parameters specific to the exchange API endpoint
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
*/
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
getProductGroupFromMarket(market: Market): string;
parseTrade(trade: Dict, market?: Market): Trade;
parseTakerOrMaker(execType: Str): string;
/**
* @method
* @name deepcoin#fetchBalance
* @description query for balance and get the amount of funds available for trading or funds locked in orders
* @see https://www.deepcoin.com/docs/DeepCoinAccount/getAccountBalance
* @param {object} [params] extra parameters specific to the exchange API endpoint
* @param {string} [params.type] "spot" or "swap", the market type for the balance
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
*/
fetchBalance(params?: {}): Promise<Balances>;
parseBalance(response: any): Balances;
/**
* @method
* @name deepcoin#fetchDeposits
* @description fetch all deposits made to an account
* @see https://www.deepcoin.com/docs/assets/deposit
* @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 {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?: {}): Promise<Transaction[]>;
/**
* @method
* @name deepcoin#fetchWithdrawals
* @description fetch all withdrawals made from an account
* @see https://www.deepcoin.com/docs/assets/withdraw
* @param {string} code unified currency code of the currency transferred
* @param {int} [since] the earliest time in ms to fetch transfers for (default 24 hours ago)
* @param {int} [limit] the maximum number of transfer structures to retrieve (default 50, max 200)
* @param {object} [params] extra parameters specific to the exchange API endpoint
* @param {int} [params.until] the latest time in ms to fetch transfers for (default time now)
* @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?: {}): Promise<Transaction[]>;
parseTransaction(transaction: Dict, currency?: Currency): Transaction;
parseTransactionStatus(status: Str): Str;
/**
* @method
* @name deepcoin#fetchDepositAddresses
* @description fetch deposit addresses for multiple currencies and chain types
* @see https://www.deepcoin.com/docs/assets/chainlist
* @param {string[]|undefined} codes list of unified currency codes, default is undefined
* @param {object} [params] extra parameters specific to the exchange API endpoint
* @returns {object} a list of [address structures]{@link https://docs.ccxt.com/#/?id=address-structure}
*/
fetchDepositAddresses(codes?: Strings, params?: {}): Promise<DepositAddress[]>;
/**
* @method
* @name deepcoin#fetchDepositAddress
* @description fetch the deposit address for a currency associated with this account
* @see https://www.deepcoin.com/docs/assets/chainlist
* @param {string} code unified currency code
* @param {object} [params] extra parameters specific to the exchange API endpoint
* @param {string} [params.network] unified network code for deposit chain
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
*/
fetchDepositAddress(code: string, params?: {}): Promise<DepositAddress>;
parseDepositAddress(response: any, currency?: Currency): DepositAddress;
/**
* @method
* @name deepcoin#fetchLedger
* @description fetch the history of changes, actions done by the user or operations that altered the balance of the user
* @see https://www.deepcoin.com/docs/DeepCoinAccount/getAccountBills
* @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 {string} [params.type] 'spot' or 'swap', the market type for the ledger (default 'spot')
* @returns {object[]} a list of [ledger structures]{@link https://docs.ccxt.com/#/?id=ledger}
*/
fetchLedger(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<LedgerEntry[]>;
parseLedgerEntry(item: Dict, currency?: Currency): LedgerEntry;
parseLedgerEntryType(type: any): string;
/**
* @method
* @name deepcoin#transfer
* @description transfer currency internally between wallets on the same account
* @see https://www.deepcoin.com/docs/assets/transfer
* @param {string} code unified currency code
* @param {float} amount amount to transfer
* @param {string} fromAccount account to transfer from ('spot', 'inverse', 'linear', 'fund', 'rebate' or 'demo')
* @param {string} toAccount account to transfer to ('spot', 'inverse', 'linear', 'fund', 'rebate' or 'demo')
* @param {object} [params] extra parameters specific to the exchange API endpoint
* @param {string} [params.userId] user id
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
*/
transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?: {}): Promise<TransferEntry>;
parseTransfer(transfer: Dict, currency?: Currency): TransferEntry;
parseTransferStatus(status: Str): Str;
/**
* @method
* @name deepcoin#createOrder
* @description create a trade order
* @see https://www.deepcoin.com/docs/DeepCoinTrade/order
* @see https://www.deepcoin.com/docs/DeepCoinTrade/triggerOrder
* @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 {string} [params.clientOrderId] a unique id for the order
* @param {string} [params.timeInForce] *non trigger orders only* 'GTC' (Good Till Cancel), 'IOC' (Immediate Or Cancel) or 'PO' (Post Only)
* @param {bool} [params.postOnly] *non trigger orders only* true to place a post only order
* @param {bool} [params.reduceOnly] *non trigger orders only* a mark to reduce the position size for margin, swap and future orders
* @param {float} [params.triggerPrice] the price a trigger order is triggered at
* @param {float} [params.stopLoss.triggerPrice] the price that a stop loss order is triggered at
* @param {float} [params.takeProfit.triggerPrice] the price that a take profit order is triggered at
* @param {string} [params.positionSide] if position mode is one-way: set to 'net', if position mode is hedge-mode: set to 'long' or 'short'
* @param {bool} [params.hedged] *swap only* true for hedged mode, false for one way mode
* @param {string} [params.marginMode] *swap only*'cross' or 'isolated', the default is 'cash' for spot and 'cross' for swap
* @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?: {}): Promise<Order>;
createOrderRequest(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): any;
createRegularOrderRequest(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): any;
createTriggerOrderRequest(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): any;
handleTypePostOnlyAndTimeInForce(type: OrderType, params: any): any[];
/**
* @method
* @name deepcoin#createMarketOrderWithCost
* @description create a market order by providing the symbol, side and cost
* @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?: {}): Promise<Order>;
/**
* @method
* @name deepcoin#createMarketBuyOrderWithCost
* @description create a market buy order by providing the symbol and cost
* @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?: {}): Promise<Order>;
/**
* @method
* @name deepcoin#createMarketSellOrderWithCost
* @description create a market sell order by providing the symbol and cost
* @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?: {}): Promise<Order>;
/**
* @method
* @name deepcoin#fetchClosedOrder
* @description fetches information on a closed order made by the user
* @see https://www.deepcoin.com/docs/DeepCoinTrade/finishOrderByID
* @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
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
*/
fetchClosedOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
/**
* @method
* @name deepcoin#fetchOpenOrder
* @description fetch an open order by it's id
* @see https://www.deepcoin.com/docs/DeepCoinTrade/orderByID
* @param {string} id order id
* @param {string} symbol unified market symbol, default is undefined
* @param {object} [params] extra parameters specific to the exchange API endpoint
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
*/
fetchOpenOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
/**
* @method
* @name deepcoin#fetchCanceledAndClosedOrders
* @see https://www.deepcoin.com/docs/DeepCoinTrade/ordersHistory
* @see https://www.deepcoin.com/docs/DeepCoinTrade/triggerOrdersHistory
* @description fetches information on multiple canceled and closed orders made by the user
* @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 {bool} [params.trigger] whether to fetch trigger/algo orders (default false)
* @param {string} [params.type] *non trigger orders only* 'spot' or 'swap', the market type for the orders
* @param {string} [params.state] *non trigger orders only* 'canceled' or 'filled', the order state to filter by
* @param {string} [params.OrderType] *trigger orders only* 'limit' or 'market'
* @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 {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
*/
fetchCanceledAndClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
/**
* @method
* @name deepcoin#fetchCanceledOrders
* @description fetches information on multiple canceled orders made by the user
* @see https://www.deepcoin.com/docs/DeepCoinTrade/ordersHistory
* @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 {string} [params.type] 'spot' or 'swap', the market type for the orders
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
*/
fetchCanceledOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
/**
* @method
* @name deepcoin#fetchClosedOrders
* @description fetches information on multiple closed orders made by the user
* @see https://www.deepcoin.com/docs/DeepCoinTrade/ordersHistory
* @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 {string} [params.type] 'spot' or 'swap', the market type for the orders
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
*/
fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
/**
* @method
* @name deepcoin#fetchOpenOrders
* @description fetch all unfilled currently open orders
* @see https://www.deepcoin.com/docs/DeepCoinTrade/ordersPendingV2
* @see https://www.deepcoin.com/docs/DeepCoinTrade/triggerOrdersPending
* @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 {bool} [params.trigger] whether to fetch trigger/algo orders (default false)
* @param {int} [params.index] *non trigger orders only* pagination index, default is 1
* @param {string} [params.orderType] *trigger orders only* 'limit' or 'market'
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
*/
fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
/**
* @method
* @name deepcoin#cancelOrder
* @description cancels an open order
* @see https://www.deepcoin.com/docs/DeepCoinTrade/cancelOrder
* @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 {bool} [params.trigger] whether the order is a trigger/algo order (default false)
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
*/
cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
/**
* @method
* @name deepcoin#cancelAllOrders
* @description cancel all open orders in a market
* @see https://www.deepcoin.com/docs/DeepCoinTrade/cancelAllOrder
* @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] *swap only* 'cross' or 'isolated', the default is 'cash' for spot and 'cross' for swap
* @param {bool} [params.merged] *swap only* true for merged positions, false for split positions (default true)
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
*/
cancelAllOrders(symbol?: Str, params?: {}): Promise<Order[]>;
/**
* @method
* @name deepcoin#editOrder
* @description edit a trade order
* @see https://www.deepcoin.com/docs/DeepCoinTrade/replaceOrder
* @see https://www.deepcoin.com/docs/DeepCoinTrade/replaceTPSL
* @param {string} id cancel order id
* @param {string} [symbol] unified symbol of the market to create an order in (not used in deepcoin editOrder)
* @param {string} [type] 'market' or 'limit' (not used in deepcoin editOrder)
* @param {string} [side] 'buy' or 'sell' (not used in deepcoin editOrder)
* @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 {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
* @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?: {}): Promise<Order>;
/**
* @method
* @name deepcoin#cancelOrders
* @description cancel multiple orders
* @param {string[]} ids order ids
* @param {string} [symbol] unified market symbol, default is undefined
* @param {object} [params] extra parameters specific to the exchange API endpoint
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
*/
cancelOrders(ids: string[], symbol?: Str, params?: {}): Promise<Order[]>;
parseOrder(order: Dict, market?: Market): Order;
parseOrderStatus(status: Str): Str;
parseOrderType(type: Str): Str;
parseOrderTimeInForce(type: Str): Str;
/**
* @method
* @description fetch open positions for a single market
* @name deepcoin#fetchPositionsForSymbol
* @see https://www.deepcoin.com/docs/DeepCoinAccount/accountPositions
* @description fetch all open positions for specific symbol
* @param {string} symbol unified market symbol
* @param {object} [params] extra parameters specific to the exchange API endpoint
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
*/
fetchPositionsForSymbol(symbol: string, params?: {}): Promise<Position[]>;
/**
* @method
* @name deepcoin#fetchPositions
* @description fetch all open positions
* @see https://www.deepcoin.com/docs/DeepCoinAccount/accountPositions
* @param {string[]} [symbols] list of unified market symbols
* @param {object} [params] extra parameters specific to the exchange API endpoint
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
*/
fetchPositions(symbols?: Strings, params?: {}): Promise<Position[]>;
parsePosition(position: Dict, market?: Market): Position;
/**
* @method
* @name deepcoin#setLeverage
* @description set the level of leverage for a market
* @see https://www.deepcoin.com/docs/DeepCoinAccount/accountSetLeverage
* @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 {string} [params.marginMode] 'cross' or 'isolated' (default is cross)
* @param {string} [params.mrgPosition] 'merge' or 'split', default is merge
* @returns {object} response from the exchange
*/
setLeverage(leverage: int, symbol?: Str, params?: {}): Promise<any>;
/**
* @method
* @name deepcoin#fetchFundingRates
* @description fetch the funding rate for multiple markets
* @see https://www.deepcoin.com/docs/DeepCoinTrade/currentFundRate
* @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?: {}): Promise<FundingRates>;
/**
* @method
* @name deepcoin#fetchFundingRate
* @description fetch the current funding rate
* @see https://www.deepcoin.com/docs/DeepCoinTrade/currentFundRate
* @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?: {}): Promise<FundingRate>;
parseFundingRate(contract: any, market?: Market): FundingRate;
/**
* @method
* @name deepcoin#fetchFundingRateHistory
* @description fetches historical funding rate prices
* @see https://www.deepcoin.com/docs/DeepCoinTrade/fundingRateHistory
* @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.page] pagination page number
* @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?: {}): Promise<import("./base/types.js").FundingRateHistory[]>;
parseFundingRateHistory(info: any, market?: Market): {
info: any;
symbol: string;
fundingRate: number;
timestamp: number;
datetime: string;
};
/**
* @method
* @name deepcoin#fetchMyTrades
* @description fetch all trades made by the user
* @see https://www.deepcoin.com/docs/DeepCoinTrade/tradeFills
* @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 {int} [params.until] timestamp in ms of the latest trade to fetch
* @param {string} [params.type] 'spot' or 'swap', the market type for the trades (default is 'spot')
* @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 {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
*/
fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
/**
* @method
* @name deepcoin#fetchOrderTrades
* @description fetch all the trades made from a single order
* @see https://www.deepcoin.com/docs/DeepCoinTrade/tradeFills
* @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
* @param {string} [params.type] 'spot' or 'swap', the market type for the trades
* @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?: {}): Promise<Trade[]>;
/**
* @method
* @name deepcoin#closePosition
* @description closes open positions for a market
* @see https://www.deepcoin.com/docs/DeepCoinTrade/batchClosePosition
* @see https://www.deepcoin.com/docs/DeepCoinTrade/closePositionByIds
* @param {string} symbol Unified CCXT market symbol
* @param {string} [side] not used by deepcoin
* @param {object} [params] extra parameters specific to the exchange API endpoint
* @param {string|undefined} [params.positionId] the id of the position you would like to close
* @param {string[]|undefined} [params.positionIds] list of position ids to close (for batch closing)
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
*/
closePosition(symbol: string, side?: OrderSide, params?: {}): Promise<Order>;
sign(path: any, api?: string, method?: string, params?: {}, headers?: any, body?: any): {
url: string;
method: string;
body: any;
headers: any;
};
handleErrors(code: int, reason: string, url: string, method: string, headers: Dict, body: string, response: any, requestHeaders: any, requestBody: any): any;
}