mirror of
https://github.com/Legolas-2025/EPrices.git
synced 2026-08-17 12:34:51 +02:00
Add negative price provider fee support in VERSION.md
Introduced support for negative provider fees with a new secret key and updated price calculation methods for both positive and negative prices.
This commit is contained in:
+20
@@ -1,5 +1,25 @@
|
|||||||
# EPrices – Version History
|
# EPrices – Version History
|
||||||
|
|
||||||
|
## v1.1 — 2026-04-06
|
||||||
|
|
||||||
|
### Negative price provider fee
|
||||||
|
|
||||||
|
Added separate provider fee support for negative spot prices via a new
|
||||||
|
`eprices_neg_prov_fee` secret key. Positive and negative market prices
|
||||||
|
now use independent fee multipliers, correctly modelling contracts where
|
||||||
|
the provider's fee structure differs between the two cases.
|
||||||
|
|
||||||
|
Price calculation:
|
||||||
|
- Positive: `(raw / 1000) × (1 + prov_fee) × (1 + vat_rate)`
|
||||||
|
- Negative: `(raw / 1000) × (1 - neg_prov_fee) × (1 + vat_rate)`
|
||||||
|
|
||||||
|
VAT is applied to both, consistent with net billing where VAT is calculated
|
||||||
|
on the monthly net sum (linear equivalence applies).
|
||||||
|
|
||||||
|
See `CHANGELOG.md` for full implementation details.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## v1.0 — 2026-04-05
|
## v1.0 — 2026-04-05
|
||||||
|
|
||||||
First public release.
|
First public release.
|
||||||
|
|||||||
Reference in New Issue
Block a user