You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
curl -X POST -H 'Content-Type: application/json' http://localhost:4004/v2/1/prices?type=json -d '["0x0bc529c00c6401aef6d220be8c6ea1667f6ad93e"]'
This endpoint fetches prices from yearn-exporter, it will eventually be hosted somewhere but it can be run locally for now for testing purposes. In this example we fetch the price just for YFI, but an array of tokens can be passed in.
A new service should be added to the SDK that fetches prices for all yearn tokens, caches the response for 3 minutes, and provides a function to fetch all prices, and one for individual prices. All yearn tokens can be found from the registry adapter's assetsTokensAddresses function - https://etherscan.io/address/0x240315db938d44bb124ae619f5fd0269a02d1271#readContract
The text was updated successfully, but these errors were encountered:
yearn-linear-gh-syncbot
changed the title
Add exporter pricing service
[WEB-1325-216] Add exporter pricing service
Feb 4, 2022
feat/brownie_bridge
make bb-up
curl -X POST -H 'Content-Type: application/json' http://localhost:4004/v2/1/prices?type=json -d '["0x0bc529c00c6401aef6d220be8c6ea1667f6ad93e"]'
This endpoint fetches prices from yearn-exporter, it will eventually be hosted somewhere but it can be run locally for now for testing purposes. In this example we fetch the price just for YFI, but an array of tokens can be passed in.
A new service should be added to the SDK that fetches prices for all yearn tokens, caches the response for 3 minutes, and provides a function to fetch all prices, and one for individual prices. All yearn tokens can be found from the registry adapter's
assetsTokensAddresses
function - https://etherscan.io/address/0x240315db938d44bb124ae619f5fd0269a02d1271#readContractThe text was updated successfully, but these errors were encountered: