cleaning in spot client
This commit is contained in:
@@ -6,7 +6,7 @@ import {
|
||||
serializeParams,
|
||||
RestClientType,
|
||||
REST_CLIENT_TYPE_ENUM,
|
||||
agentSource,
|
||||
APIID,
|
||||
getRestBaseUrl,
|
||||
} from './requestUtils';
|
||||
|
||||
@@ -98,7 +98,7 @@ export default abstract class BaseRestClient {
|
||||
// custom request options based on axios specs - see: https://github.com/axios/axios#request-config
|
||||
...requestOptions,
|
||||
headers: {
|
||||
'x-referer': agentSource,
|
||||
'x-referer': APIID,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@ export function isWsPong(msg: any): boolean {
|
||||
);
|
||||
}
|
||||
|
||||
export const agentSource = 'bybitapinode';
|
||||
export const APIID = 'bybitapinode';
|
||||
|
||||
/**
|
||||
* Used to switch how authentication/requests work under the hood (primarily for SPOT since it's different there)
|
||||
|
||||
Reference in New Issue
Block a user