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

Get binance OHLC history and quote format correct #2

Merged

Conversation

goodboy
Copy link

@goodboy goodboy commented May 21, 2021

This gets the binance provider meeting the data feed schema requirements
of both the OHLC sampling/charting machinery as well as proper
formatting of historical OHLC history.

Notably,

  • spec a minimal ohlc dtype based on the kline endpoint
  • use a dataclass to parse out OHLC bar datums and pack into np.ndarray/shm
  • add the aggTrade endpoint to get last clearing (traded) prices,
    validate with pydantic and then normalize these into our tick-quote
    format for delivery over the feed stream api.
  • a notable requirement is that the "first" quote from the feed must
    contain a 'last` field so the clearing system can start up correctly.

This gets the binance provider meeting the data feed schema requirements
of both the OHLC sampling/charting machinery as well as proper
formatting of historical OHLC history.

Notably,
- spec a minimal ohlc dtype based on the kline endpoint
- use a dataclass to parse out OHLC bar datums and pack into np.ndarray/shm
- add the ``aggTrade`` endpoint to get last clearing (traded) prices,
  validate with ``pydantic`` and then normalize these into our tick-quote
  format for delivery over the feed stream api.
- a notable requirement is that the "first" quote from the feed must
  contain a 'last` field so the clearing system can start up correctly.
@guilledk guilledk merged commit 169420b into guilledk:binance_backend May 21, 2021
@goodboy goodboy deleted the binance_aggtrades_and_ohlc_parsing branch July 29, 2022 19:28
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.

2 participants