|
|
@ -6,6 +6,7 @@ import { UpdateAccountDto } from '@ghostfolio/api/app/account/update-account.dto |
|
|
|
import { UpdateBulkMarketDataDto } from '@ghostfolio/api/app/admin/update-bulk-market-data.dto'; |
|
|
|
import { CreateTagDto } from '@ghostfolio/api/app/endpoints/tags/create-tag.dto'; |
|
|
|
import { UpdateTagDto } from '@ghostfolio/api/app/endpoints/tags/update-tag.dto'; |
|
|
|
import { CreateWatchlistItemDto } from '@ghostfolio/api/app/endpoints/watchlist/create-watchlist-item.dto'; |
|
|
|
import { CreateOrderDto } from '@ghostfolio/api/app/order/create-order.dto'; |
|
|
|
import { |
|
|
|
Activities, |
|
|
@ -686,6 +687,10 @@ export class DataService { |
|
|
|
return this.http.get<Tag[]>('/api/v1/tags'); |
|
|
|
} |
|
|
|
|
|
|
|
public fetchWatchlist() { |
|
|
|
return this.http.get<AssetProfileIdentifier[]>('/api/v1/watchlist'); |
|
|
|
} |
|
|
|
|
|
|
|
public generateAccessToken(aUserId: string) { |
|
|
|
return this.http.post<AccessTokenResponse>( |
|
|
|
`/api/v1/user/${aUserId}/access-token`, |
|
|
@ -748,6 +753,10 @@ export class DataService { |
|
|
|
return this.http.post<UserItem>('/api/v1/user', {}); |
|
|
|
} |
|
|
|
|
|
|
|
public postWatchlist(watchlistItem: CreateWatchlistItemDto) { |
|
|
|
return this.http.post('/api/v1/watchlist', watchlistItem); |
|
|
|
} |
|
|
|
|
|
|
|
public putAccount(aAccount: UpdateAccountDto) { |
|
|
|
return this.http.put<UserItem>(`/api/v1/account/${aAccount.id}`, aAccount); |
|
|
|
} |
|
|
|