This repository has been archived by the owner on Feb 1, 2024. It is now read-only.
Allow pricefeed inversions for more complex price derivations #148
Labels
feature request
New feature or request
Milestone
Desired Behavior
I want to be able to derive the price for buysell using a wider variety of conversions. For example, if I want to derive the price of XLM/USD by checking XLM/BTC vs BTC/USD, neither pricefeed A vs B direction returns the correct price. When Kelp only worked on the sdex this was fine; you just swap your sdex assets and read the orderbook the other direction. If you're trading on centralized exchanges you can't do that.
Impact
This will allow me to trade more effectively on pairs that don't have good direct non-self-referential pricefeed options.
Feature Suggestion
We can enable this behavior by adding an
INVERT
option to the price feed config parameters. When set to true the pricefeed would return1.0 / normally returned price
.Specification
Pull request incoming.
The text was updated successfully, but these errors were encountered: