|
@ -2,6 +2,7 @@ import { HttpClient, HttpParams } from '@angular/common/http'; |
|
|
import { Injectable } from '@angular/core'; |
|
|
import { Injectable } from '@angular/core'; |
|
|
import { CreateAccessDto } from '@ghostfolio/api/app/access/create-access.dto'; |
|
|
import { CreateAccessDto } from '@ghostfolio/api/app/access/create-access.dto'; |
|
|
import { CreateAccountDto } from '@ghostfolio/api/app/account/create-account.dto'; |
|
|
import { CreateAccountDto } from '@ghostfolio/api/app/account/create-account.dto'; |
|
|
|
|
|
import { TransferBalanceDto } from '@ghostfolio/api/app/account/transfer-balance.dto'; |
|
|
import { UpdateAccountDto } from '@ghostfolio/api/app/account/update-account.dto'; |
|
|
import { UpdateAccountDto } from '@ghostfolio/api/app/account/update-account.dto'; |
|
|
import { CreateOrderDto } from '@ghostfolio/api/app/order/create-order.dto'; |
|
|
import { CreateOrderDto } from '@ghostfolio/api/app/order/create-order.dto'; |
|
|
import { Activities } from '@ghostfolio/api/app/order/interfaces/activities.interface'; |
|
|
import { Activities } from '@ghostfolio/api/app/order/interfaces/activities.interface'; |
|
@ -471,6 +472,18 @@ export class DataService { |
|
|
return this.http.post<OrderModel>(`/api/v1/account`, aAccount); |
|
|
return this.http.post<OrderModel>(`/api/v1/account`, aAccount); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public postTransferAccountBalance({ |
|
|
|
|
|
accountIdFrom, |
|
|
|
|
|
accountIdTo, |
|
|
|
|
|
balance |
|
|
|
|
|
}: TransferBalanceDto) { |
|
|
|
|
|
return this.http.post('/api/v1/account/transfer-balance', { |
|
|
|
|
|
accountIdFrom, |
|
|
|
|
|
accountIdTo, |
|
|
|
|
|
balance |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
public postBenchmark(benchmark: UniqueAsset) { |
|
|
public postBenchmark(benchmark: UniqueAsset) { |
|
|
return this.http.post(`/api/v1/benchmark`, benchmark); |
|
|
return this.http.post(`/api/v1/benchmark`, benchmark); |
|
|
} |
|
|
} |
|
|