- Returned type improvements.
- Start migrating to base rest client. - Remove deprecated methods. - Run linter. - Deprecate shared endpoints for readibility. All methods are replicated within each client (there's not much duplication). - Expand test coverage for public inverse endpoints.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
export type KlineInterval = '1m'
|
||||
export type KlineInterval =
|
||||
| '1m'
|
||||
| '3m'
|
||||
| '5m'
|
||||
| '15m'
|
||||
@@ -16,12 +17,17 @@ export type numberInString = string;
|
||||
|
||||
export interface APIResponse<T> {
|
||||
ret_code: number;
|
||||
ret_msg: "OK" | string;
|
||||
ret_msg: 'OK' | string;
|
||||
ext_code: string;
|
||||
ext_info: string;
|
||||
result: T;
|
||||
}
|
||||
|
||||
export interface APIResponseWithTime<T> extends APIResponse<T> {
|
||||
/** UTC timestamp */
|
||||
time_now: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Request Parameter Types
|
||||
*/
|
||||
@@ -116,3 +122,7 @@ export interface SymbolInfo {
|
||||
price_filter: PriceFilter;
|
||||
lot_size_filter: LotSizeFilter;
|
||||
}
|
||||
|
||||
export interface TimeResult {
|
||||
time_now: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user