zen-oracle issueshttps://gitlab.com/zenprotocol/zen-oracle/-/issues2019-05-14T11:31:47Zhttps://gitlab.com/zenprotocol/zen-oracle/-/issues/1Create API end points for the oracle2019-05-14T11:31:47ZElan PerachCreate API end points for the oracle```
/proof?date=[date]&ticker=[ticker]
- date: string, yyyy-MM-dd formatted date
- ticker: string
returns a yaml formatted proof of inclusion (to be consumed by the oracle contract's 'verify' command) example:
Hash: bdbac8bf39...```
/proof?date=[date]&ticker=[ticker]
- date: string, yyyy-MM-dd formatted date
- ticker: string
returns a yaml formatted proof of inclusion (to be consumed by the oracle contract's 'verify' command) example:
Hash: bdbac8bf395a74d45e34c04d3661ebd607dcd21a9f0eec52264b4f734ee8e288
Index: 0
AuditPath:
- 6e7ce38340711d436aae480719c7c30b5bc488476bb452591b0c8dedb30149bf
- dacf022e7b964b27eb40b45c3c0c69a6db439a09f7ea8c1f819b65f7ae7d5a7d
- 411784e894b3d6adb3091a71d119d95fcc3c35fcb3c7239ec45e778bc86359b8
- 2ab9b3f0f2014218623f84279fb26027a9d60504e67ffb7ba4b6fe991cf73d45
- 776bcba2254cccaff61bc22f58f8da1a7e015dd07ec8c0d0e577d11cc14a293b
/data?date=[date]&ticker=[ticker]
- date: string, yyyy-MM-dd formatted date
- ticker: string
returns the value a per a given ticker and a date, in JSON format:
{
ticker: "AAPL",
value: 12.345
}
/data?date=[date]
returns a list of ticker prices as per a given date, in JSON format:
- date: string, yyyy-MM-dd formatted date
[{
ticker: "AAPL",
value: 12.345
}]
/data?ticker=[ticker]
returns a list of prices as per a given ticker along with their dates, in JSON format:
- ticker: string
- date: string, yyyy-MM-dd formatted date
[{
date: "2018-11-28",
value: 12.345
}]
```CrembaCremba