-
Notifications
You must be signed in to change notification settings - Fork 117
Open
Description
I tried to use a value as in the example but Deriv did not recognize decimal numbers. What do I do?
const stream_src = api.basic.subscribe(
{
amount: 0.35,
basis: 'stake',
contract_type: 'CALL',
proposal: 1,
subscribe: 1,
currency: 'USD',
duration: 100,
symbol: 'frxUSDJPY',
}
);
// listen for updates, filter those which have payouts greater than 18
const response = await stream_src.pipe(filter(item => item.payout > 18)).toPromise();
console.log(response);
Originally posted by @salar-fs in #43 (comment)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels