refactoring in new classes around consistency. Add spotv3 REST client

This commit is contained in:
tiagosiebler
2022-09-10 12:23:32 +01:00
parent a1c0887417
commit 3a984594dc
14 changed files with 365 additions and 95 deletions

View File

@@ -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) {

View File

@@ -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 =