kucoin-universal-sdk
Version:
Official KuCoin Universal SDK.
82 lines (81 loc) • 1.92 kB
TypeScript
import { RestResponse } from '../../../model/common';
import { Response } from '../../../internal/interfaces/serializable';
export declare class GetTickerResp implements Response<RestResponse> {
/**
* Sequence number, used to judge whether the messages pushed by Websocket are continuous.
*/
sequence: number;
/**
* Symbol of the contract. Please refer to [Get Symbol endpoint: symbol](https://www.kucoin.com/docs-new/api-3470220)
*/
symbol: string;
/**
* Filled side; the trade side indicates the taker order side. A taker order is the order that was matched with orders opened on the order book.
*/
side: GetTickerResp.SideEnum;
/**
* Filled quantity
*/
size: number;
/**
* Transaction ID
*/
tradeId: string;
/**
* Filled price
*/
price: string;
/**
* Best bid price
*/
bestBidPrice: string;
/**
* Best bid size
*/
bestBidSize: number;
/**
* Best ask price
*/
bestAskPrice: string;
/**
* Best ask size
*/
bestAskSize: number;
/**
* Filled time (nanoseconds)
*/
ts: number;
/**
* Private constructor, please use the corresponding static methods to construct the object.
*/
private constructor();
/**
* common response
*/
commonResponse?: RestResponse;
setCommonResponse(response: RestResponse): void;
/**
* Convert the object to a JSON string.
*/
toJson(): string;
/**
* Create an object from a JSON string.
*/
static fromJson(input: string): GetTickerResp;
/**
* Create an object from Js Object.
*/
static fromObject(jsonObject: Object): GetTickerResp;
}
export declare namespace GetTickerResp {
enum SideEnum {
/**
* buy
*/
BUY,
/**
* sell
*/
SELL
}
}