or any other asset?
If you get the defi-cli and run a node you can use "defi-cli listpoolpairs". There are also REST endpoints somewhere but I don't know where to find them.
@DoEvtgInLove Thanks, will keep it in mind. REST API sounds interesting... I'm having a look into defichain-income on GitHub since it is implemented there, too. But seems it only shows the price for the BTC/DFI pair.
https://ocean.defichain.com/v0/mainnet/poolpairs found one
I don't use the REST APIs myself so I don't really know. I get all my information from executing "defi-cli help". Desktop wallet users can also type "help" in the console to get an overview of all possible commands. This is the endpoint for oracles but I don't think the actual prices are included here: https://ocean.defichain.com/v0/mainnet/oracles
You can find information about individual oracles by making the following call: https://ocean.defichain.com/v0/mainnet/oracles/df1qcpp3entq53tdyklm5v0lnvqer4verr4puxchq4 Where "df1qcpp3entq53tdyklm5v0lnvqer4verr4puxchq4" is the "ownerAddress" property value you get from the oracle call that returns a list of all the oracles
Nice, thanks for the tip. I think full API reference would be available here eventually: https://jellyfish.defichain.com/ocean
Обсуждают сегодня