This PR adds a generic price feed which takes a url and response path separated by a semi-colon to retrieve the price
Two examples urls and responses paths are shown below, to see the expected json response paste the url in the browser without the response path. This feat uses a library gjson and the full syntax for traversing json responses can be seen here https://github.com/tidwall/gjson/blob/master/SYNTAX.md
This PR adds a generic price feed which takes a url and response path separated by a semi-colon to retrieve the price
Two examples urls and responses paths are shown below, to see the expected json response paste the url in the browser without the response path. This feat uses a library gjson and the full syntax for traversing json responses can be seen here https://github.com/tidwall/gjson/blob/master/SYNTAX.md
Examples
https://api.kraken.com/0/public/Ticker?pair=XBTUSD;result.XXBTZUSD.a.0 https://api.kraken.com/0/public/Depth?pair=XBTUSD;result.XXBTZUSD.asks.0.0