- 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:
tiagosiebler
2022-05-05 21:25:28 +01:00
parent cf9147ff60
commit 51aa7ae1f5
11 changed files with 8447 additions and 373 deletions

View File

@@ -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;
}