Skip to content

Type Alias: SpotAPISuccessResponse<TData, TPayloadKey extends string = "data"> ​

ts
type SpotAPISuccessResponse<TData, TPayloadKey extends string = "data"> = object & Record<TPayloadKey, TData>;

HTX spot API success response. TData is the payload. TPayloadKey defaults to "data" but can be overridden (e.g. "tick").

Type Parameters ​

Type ParameterDefault type
TData-
TPayloadKey extends string"data"

Type Declaration ​

ch? ​

ts
ch?: string;

code? ​

ts
code?: string;

ok? ​

ts
ok?: boolean;

status ​

ts
status: string;

success? ​

ts
success?: boolean;

ts? ​

ts
ts?: number;

Built by Siebly. Open source SDKs for exchange APIs.