Add new createTransaction method
This commit is contained in:
@@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user