-
Notifications
You must be signed in to change notification settings - Fork 0
Hook Odyssey Perpetual connector #1
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
base: master
Are you sure you want to change the base?
Conversation
| message_queue.put_nowait(raw_message) | ||
|
|
||
| async def get_funding_info(self, trading_pair: str) -> FundingInfo: | ||
| index_price = await self._data_source.get_last_traded_price(trading_pair) |
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.
do we need both here?
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.
The FundingInfo object has a field for both mark price and index price. This line is just getting the cached index price to include along with mark, etc.
| async def get_funding_info(self, trading_pair: str) -> FundingInfo: | ||
| index_price = await self._data_source.get_last_traded_price(trading_pair) | ||
| funding_info = await self._data_source.get_funding_info(trading_pair) | ||
| funding_info.index_price = Decimal(index_price) |
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.
can you confirm that we're doing funding on the index?
| EIP712_DOMAIN_VERSION = "1.0.0" | ||
|
|
||
| CONTRACT_ADDRESSES = { | ||
| DOMAIN: "0x64247BeF0C0990aF63FCbdd21dc07aC2b251f500", # TODO: Set to mainnet |
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.
can we set a "paper trading" relay?
Before submitting this PR, please make sure:
A description of the changes proposed in the pull request:
This PR creates a Hook Odyssey connector
Tests performed by the developer:
No tests in this current version of the PR
Tips for QA testing: