This commit is contained in:
peepopoggers
2021-02-02 11:52:13 +00:00
parent 80c37cf364
commit 3ceec80c17

View File

@@ -5,7 +5,11 @@ export default class SharedEndpoints {
// TODO: Is there a way to say that Base has to provide this? // TODO: Is there a way to say that Base has to provide this?
protected requestWrapper: RequestWrapper; protected requestWrapper: RequestWrapper;
//------------Market Data Endpoints------------> /**
*
* Market Data Endpoints
*
*/
getOrderBook(params: { getOrderBook(params: {
symbol: string; symbol: string;
@@ -56,13 +60,21 @@ export default class SharedEndpoints {
return this.requestWrapper.get('v2/public/account-ratio', params); return this.requestWrapper.get('v2/public/account-ratio', params);
} }
//------------Account Data Endpoints------------> /**
*
* Account Data Endpoints
*
*/
getApiKeyInfo(): GenericAPIResponse { getApiKeyInfo(): GenericAPIResponse {
return this.requestWrapper.get('v2/private/account/api-key'); return this.requestWrapper.get('v2/private/account/api-key');
} }
//------------Wallet Data Endpoints------------> /**
*
* Wallet Data Endpoints
*
*/
getWalletBalance(params: { getWalletBalance(params: {
coin?: string; coin?: string;
@@ -101,7 +113,11 @@ export default class SharedEndpoints {
return this.requestWrapper.get('v2/private/wallet/withdraw/list', params); return this.requestWrapper.get('v2/private/wallet/withdraw/list', params);
} }
//-------------API Data Endpoints-------------> /**
*
* API Data Endpoints
*
*/
getServerTime(): GenericAPIResponse { getServerTime(): GenericAPIResponse {
return this.requestWrapper.get('v2/public/time'); return this.requestWrapper.get('v2/public/time');
@@ -118,4 +134,4 @@ export default class SharedEndpoints {
return Math.ceil((result.time_now * 1000) - end + ((end - start) / 2)); return Math.ceil((result.time_now * 1000) - end + ((end - start) / 2));
}); });
} }
} }