refactoring in new classes around consistency. Add spotv3 REST client
This commit is contained in:
@@ -124,7 +124,7 @@ export default abstract class BaseRestClient {
|
||||
}
|
||||
|
||||
private isUSDCClient() {
|
||||
return this.clientType === REST_CLIENT_TYPE_ENUM.usdc;
|
||||
return this.clientType === REST_CLIENT_TYPE_ENUM.v3;
|
||||
}
|
||||
|
||||
get(endpoint: string, params?: any) {
|
||||
|
||||
@@ -84,7 +84,7 @@ export const REST_CLIENT_TYPE_ENUM = {
|
||||
inverseFutures: 'inverseFutures',
|
||||
linear: 'linear',
|
||||
spot: 'spot',
|
||||
usdc: 'usdc',
|
||||
v3: 'v3',
|
||||
} as const;
|
||||
|
||||
export type RestClientType =
|
||||
|
||||
Reference in New Issue
Block a user