Skip to content

Conversation

@regynald
Copy link

@regynald regynald commented Feb 1, 2024

Before submitting this PR, please make sure:

  • Your code builds clean without any errors or warnings
  • You are using approved title ("feat/", "fix/", "docs/", "refactor/")

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:

@regynald regynald requested a review from jake-nyquist February 1, 2024 20:59
@regynald regynald marked this pull request as draft February 1, 2024 21:41
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)

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?

Copy link
Author

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)

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

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants