|
@ -204,6 +204,10 @@ export class DataService { |
|
|
return this.http.delete<any>(`/api/v1/order/`); |
|
|
return this.http.delete<any>(`/api/v1/order/`); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public deleteBenchmark({ dataSource, symbol }: UniqueAsset) { |
|
|
|
|
|
return this.http.delete<any>(`/api/v1/benchmark/${dataSource}/${symbol}`); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
public deleteOrder(aId: string) { |
|
|
public deleteOrder(aId: string) { |
|
|
return this.http.delete<any>(`/api/v1/order/${aId}`); |
|
|
return this.http.delete<any>(`/api/v1/order/${aId}`); |
|
|
} |
|
|
} |
|
@ -467,10 +471,6 @@ export class DataService { |
|
|
return this.http.post(`/api/v1/benchmark`, benchmark); |
|
|
return this.http.post(`/api/v1/benchmark`, benchmark); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public deleteBenchmark(benchmark: UniqueAsset) { |
|
|
|
|
|
return this.http.post(`/api/v1/benchmark/remove`, benchmark); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public postOrder(aOrder: CreateOrderDto) { |
|
|
public postOrder(aOrder: CreateOrderDto) { |
|
|
return this.http.post<OrderModel>(`/api/v1/order`, aOrder); |
|
|
return this.http.post<OrderModel>(`/api/v1/order`, aOrder); |
|
|
} |
|
|
} |
|
|