本文整理汇总了TypeScript中ccxt.Exchange类的典型用法代码示例。如果您正苦于以下问题:TypeScript Exchange类的具体用法?TypeScript Exchange怎么用?TypeScript Exchange使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Exchange类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: getSymbols
public async getSymbols() {
const symbols = this.exchangeConnection.symbols
if (symbols) return symbols
await this.exchangeConnection.loadMarkets()
return this.exchangeConnection.symbols
}
示例2: microseconds
microseconds(): number {
return this._exchange.microseconds();
}
示例3:
const fn = () => this.exchangeConnection.cancelOrder(orderId)
示例4: fetchOrderStatus
fetchOrderStatus(id: string, market: string): Promise<string> {
return this._exchange.fetchOrderStatus(id, market);
}
示例5: priceToPrecision
public priceToPrecision(symbol: string, amount: number) {
return Number(this.exchangeConnection.priceToPrecision(symbol, amount))
}
示例6: checkRequiredCredentials
checkRequiredCredentials(): void {
this._exchange.checkRequiredCredentials();
}
示例7: initRestRateLimiter
initRestRateLimiter(): void {
this._exchange.initRestRateLimiter();
}
示例8: nonce
nonce(): number {
return this._exchange.nonce();
}