Add new createTransaction method

This commit is contained in:
kevinpauer
2022-04-02 12:44:50 +02:00
parent c5e66b4720
commit 9de1258f7f
5 changed files with 53 additions and 11 deletions

View File

@@ -51,8 +51,8 @@ export class DataService {
*/
public createTransaction(
symbol: string,
time: Date,
count: number,
time: string,
count: BigInt,
price: number
): Observable<any> {
return this.http.post(API_URL + 'transactions', {
@@ -60,10 +60,11 @@ export class DataService {
'Content-Type': 'application/json',
Authorization: 'Bearer ' + this.tokenStorage.getToken(),
}),
symbol,
time,
responseType: 'text',
count,
price,
symbol,
time,
});
}