fix indent

This commit is contained in:
tiagosiebler
2021-01-30 18:11:55 +00:00
parent fc78d32023
commit e092b1355a
2 changed files with 151 additions and 151 deletions

View File

@@ -101,7 +101,7 @@ export class LinearClient extends SharedEndpoints {
//Active Orders //Active Orders
placeActiveOrder(orderRequest: { placeActiveOrder(params: {
side: string; side: string;
symbol: string; symbol: string;
order_type: string; order_type: string;
@@ -116,7 +116,7 @@ export class LinearClient extends SharedEndpoints {
close_on_trigger?: boolean; close_on_trigger?: boolean;
order_link_id?: string; order_link_id?: string;
}): GenericAPIResponse { }): GenericAPIResponse {
return this.requestWrapper.post('private/linear/order/create', orderRequest); return this.requestWrapper.post('private/linear/order/create', params);
} }
getActiveOrderList(params: { getActiveOrderList(params: {

View File

@@ -1,9 +1,9 @@
//type Constructor = new (...args: any[]) => {};
import { GenericAPIResponse } from './util/requestUtils'; import { GenericAPIResponse } from './util/requestUtils';
import RequestWrapper from './util/requestWrapper'; 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? // TODO: Is there a way to say that Base has to provide this?
protected requestWrapper: RequestWrapper;
//------------Market Data Endpoints------------> //------------Market Data Endpoints------------>
@@ -67,7 +67,7 @@ export default class SharedEndpoints {
getWalletBalance(params: { getWalletBalance(params: {
coin?: string; coin?: string;
}): GenericAPIResponse { }): GenericAPIResponse {
return this.requestWrapper.get('v2/private/wallet/balance',params) return this.requestWrapper.get('v2/private/wallet/balance', params)
} }
getAssetExchangeRecords(params?: { getAssetExchangeRecords(params?: {
@@ -111,7 +111,7 @@ export default class SharedEndpoints {
return this.requestWrapper.get('v2/public/announcement'); return this.requestWrapper.get('v2/public/announcement');
} }
async getTimeOffset(): Promise<number> { async getTimeOffset(): Promise < number > {
const start = Date.now(); const start = Date.now();
return this.getServerTime().then(result => { return this.getServerTime().then(result => {
const end = Date.now(); const end = Date.now();