Market Data Shared Endpoints Added

This commit is contained in:
CryptoCompiler
2021-01-22 09:30:36 +00:00
committed by GitHub
parent b7ac45e63e
commit b28e14cb3a

View File

@@ -4,8 +4,29 @@ import RequestWrapper from './util/requestWrapper';
export default class SharedEndpoints { export default class SharedEndpoints {
protected requestWrapper: RequestWrapper; // XXX Is there a way to say that Base has to provide this? protected requestWrapper: RequestWrapper; // XXX Is there a way to say that Base has to provide this?
//------------Market Data Endpoints------------>
getOrderBook(params: {
symbol: string;
}): GenericAPIResponse {
return this.requestWrapper.get('v2/public/orderBook/L2', params);
}
/**
* @deprecated use getTickers() instead
*/
getLatestInformation(params?: {
symbol?: string;
}): GenericAPIResponse {
return this.getTickers(params);
}
getTickers(params?: {
symbol?: string;
}): GenericAPIResponse {
return this.requestWrapper.get('v2/public/tickers', params);
}
//------------Wallet Data Endpoints------------> //------------Wallet Data Endpoints------------>