Skip to content
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

Merged
merged 4 commits into from
May 2, 2024

Conversation

yogurtandjam
Copy link
Contributor

Threads in new properties
openInterestLowerCap
openInterestUpperCap
so we can use them to calculate the effective IMF

Copy link

linear bot commented May 2, 2024

@@ -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",
Copy link
Contributor Author

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

Copy link
Contributor

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

Copy link
Contributor Author

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

@yogurtandjam yogurtandjam merged commit fb4724c into main May 2, 2024
3 checks passed
@yogurtandjam yogurtandjam deleted the jerms/OTE-296_new-market-properties branch May 2, 2024 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants