Price Fetch Method #1
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: DECA/dmarketsDB#1
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Create a file named
fetchMarkets.ts
that includes a ethers instance, the markets.ts file and its called in the main.ts file for testing.Based on two parameters a currency input and currency units (100, USD) you get a json with all the specified output of the markets.ts and unit equivalent. IF there is not input () in the call just return the latest round of all the markets.ts based on 1 ETH as default parameter.
1.Code Price Fetch Method, Example output.
The Price Fetch method (1.Code) specifies how the output should be returned fortmat, the currencies MUST BE all the currencies that are specified in the markets.ts and the requested.
The method MUST calculate the exact amount of BTC, ETH, EUR and all the specified in the markets.ts based on the quantity and currency provided as input.
The method MUST return the conversion prices from the previous calcultation and its dates in a json format.
The price must include all the possible decimals resolutions
References