fixes for private spot GET calls, improve signing process, add private read tests for spot & linear

This commit is contained in:
tiagosiebler
2022-05-08 01:00:12 +01:00
parent 7840829454
commit 38f5a6286c
9 changed files with 176 additions and 41 deletions

View File

@@ -8,7 +8,11 @@ import {
SpotSymbolInfo,
} from './types/spot';
import BaseRestClient from './util/BaseRestClient';
import { getRestBaseUrl, RestClientOptions } from './util/requestUtils';
import {
getRestBaseUrl,
RestClientOptions,
REST_CLIENT_TYPE_ENUM,
} from './util/requestUtils';
export class SpotClient extends BaseRestClient {
/**
@@ -32,7 +36,8 @@ export class SpotClient extends BaseRestClient {
secret,
getRestBaseUrl(useLivenet, restClientOptions),
restClientOptions,
requestOptions
requestOptions,
REST_CLIENT_TYPE_ENUM.spot
);
return this;