Closed imaginebeingatcomputers closed 3 years ago
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
pkg/tracker/index/index.go | 0 | 1 | 0.0% | ||
<!-- | Total: | 0 | 1 | 0.0% | --> |
Totals | |
---|---|
Change from base Build 1185808416: | 0.02% |
Covered Lines: | 118 |
Relevant Lines: | 1955 |
This calculation is not right according to the AMPL documentation and it returns different results than their API, I think that TWAP should be calculated at the time of the request and not EOD or BOD, I messaged them in their discord, so will wait for their reply to confirm. just now almost all submitted values are again off by 2-3% compared to their API
This removes the ExpandTimeVars functions, and instead calculates time vars conditionally for anyblock and cryptocompare. Timestamp variables are then added to the request instead of being expanded via env variables.