remove deprecated new method, fix missing parms

This commit is contained in:
tiagosiebler
2021-02-14 16:40:53 +00:00
parent 26602cfa05
commit 581cbe7d43
2 changed files with 17 additions and 21 deletions

View File

@@ -48,20 +48,8 @@ export class LinearClient extends SharedEndpoints {
return this.requestWrapper.get('public/linear/kline', params); return this.requestWrapper.get('public/linear/kline', params);
} }
/**
* @deprecated use getTrades() instead
*/
getPublicTradingRecords(params: {
symbol: string;
from?: number;
limit?: number;
}): GenericAPIResponse {
return this.getTrades(params);
}
getTrades(params: { getTrades(params: {
symbol: string; symbol: string;
//from?: number;
limit?: number; limit?: number;
}): GenericAPIResponse { }): GenericAPIResponse {
return this.requestWrapper.get('public/linear/recent-trading-records', params); return this.requestWrapper.get('public/linear/recent-trading-records', params);
@@ -104,10 +92,6 @@ export class LinearClient extends SharedEndpoints {
* *
* Account Data Endpoints * Account Data Endpoints
* *
*/
/**
* Active orders
*/ */
placeActiveOrder(params: { placeActiveOrder(params: {
@@ -136,7 +120,6 @@ export class LinearClient extends SharedEndpoints {
page?: number; page?: number;
limit?: number; limit?: number;
order_status?: string; order_status?: string;
}): GenericAPIResponse { }): GenericAPIResponse {
return this.requestWrapper.get('private/linear/order/list', params); return this.requestWrapper.get('private/linear/order/list', params);
} }
@@ -344,7 +327,15 @@ export class LinearClient extends SharedEndpoints {
getRiskLimitList(params: { getRiskLimitList(params: {
symbol: string; symbol: string;
}): GenericAPIResponse { }): GenericAPIResponse {
return this.requestWrapper.get('public/linear/risk-limit'); return this.requestWrapper.get('public/linear/risk-limit', params);
}
setRiskLimit(params: {
symbol: string;
side: string;
risk_id: string;
}): GenericAPIResponse {
return this.requestWrapper.get('private/linear/position/set-risk', params);
} }
/** /**
@@ -354,13 +345,12 @@ export class LinearClient extends SharedEndpoints {
getPredictedFundingFee(params: { getPredictedFundingFee(params: {
symbol: string; symbol: string;
}): GenericAPIResponse { }): GenericAPIResponse {
return this.requestWrapper.get('private/linear/funding/predicted-funding'); return this.requestWrapper.get('private/linear/funding/predicted-funding', params);
} }
getLastFundingFee(params: { getLastFundingFee(params: {
symbol: string; symbol: string;
}): GenericAPIResponse { }): GenericAPIResponse {
return this.requestWrapper.get('private/linear/funding/prev-funding'); return this.requestWrapper.get('private/linear/funding/prev-funding', params);
} }
} }

View File

@@ -37,6 +37,12 @@ export default class SharedEndpoints {
return this.requestWrapper.get('v2/public/liq-records', params); return this.requestWrapper.get('v2/public/liq-records', params);
} }
/**
*
* Market Data : Advanced
*
*/
getOpenInterest(params: { getOpenInterest(params: {
symbol: string; symbol: string;
period: string; period: string;