-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add new properties to market [OTE-296] #335
Conversation
@@ -111,6 +112,8 @@ internal class MarketProcessor(parser: ParserProtocol, private val calculateSpar | |||
"double" to mapOf( | |||
"volume24H" to "volume24H", | |||
"openInterest" to "openInterest", | |||
"openInterestLowerCap" to "openInterestLowerCap", | |||
"openInterestUpperCap" to "openInterestUpperCap", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
honestly have no idea what this is for. don't even know if i need this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This map is used for parsing fields from the API to fields in the abacus state. So adding the keys here lets abacus know to look for these fields
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah yeah i see now, in private fun perpetual
it's used as an input to the transform
method. makes sense
Threads in new properties
openInterestLowerCap
openInterestUpperCap
so we can use them to calculate the effective IMF