Giter Site home page Giter Site logo

Comments (7)

johnrees avatar johnrees commented on September 3, 2024 1

Now that I've got a grasp of how the underlying connections work I'll move on to setting up a trades feed listener for each market with serum vial

from psyoptions-market-tracker.

tomjohn1028 avatar tomjohn1028 commented on September 3, 2024 1

@johnrees apologies, we had to update the devnet program for some breaking changes.

new program id: 4DvkJJBUiXMZVYXFGgYQvGceTuM7F5Be4HqWAiR7t2vM

new market data file: marketMeta.json.zip

from psyoptions-market-tracker.

johnrees avatar johnrees commented on September 3, 2024

it looks like the subscriptions with serum-vial are working (ignore the numbers etc!) 👍

Kapture.2021-05-01.at.16.07.03.mp4

it's not using the trades channel as far as I can tell, but I'll have a look into these payloads and should be able to get some good data to store in a time-series db

2021-05-01T15:06:33.586Z debug: Received bids account update, current state PRISTINE {"market":"1 BTC : 50000 USDC","slot":53257094}
2021-05-01T15:06:34.025Z debug: Received eventQueue account update, current state PENDING {"market":"1 BTC : 50000 USDC","slot":53257094}
2021-05-01T15:06:34.042Z debug: Received asks account update, current state PENDING {"market":"1 BTC : 50000 USDC","slot":53257094}
2021-05-01T15:06:34.045Z debug: Processing message, topic: l3snapshot/1 BTC : 50000 USDC, receive delay: 2ms {"minionId":1}
2021-05-01T15:06:34.043Z debug: Slow accounts notification, slot 53257094, 457ms {"market":"1 BTC : 50000 USDC"}
2021-05-01T15:06:34.045Z debug: Processing message, topic: open/1 BTC : 50000 USDC, receive delay: 2ms {"minionId":1}
2021-05-01T15:06:34.045Z debug: Processing message, topic: l2update/1 BTC : 50000 USDC, receive delay: 2ms {"minionId":1}
2021-05-01T15:06:34.045Z debug: Processing message, topic: l2snapshot/1 BTC : 50000 USDC, receive delay: 2ms {"minionId":1}
2021-05-01T15:06:34.045Z debug: Processing message, topic: quote/1 BTC : 50000 USDC, receive delay: 2ms {"minionId":1}

from psyoptions-market-tracker.

johnrees avatar johnrees commented on September 3, 2024

Now watching all markets! Data is being stored in timescaledb for now.

I'll post some docs and do a big restructure and tidy-up of the code tomorrow, then hopefully we'll be able to close this issue and move on to the next steps.

Screenshot 2021-05-01 at 11 42 44 PM

Screenshot 2021-05-01 at 11 42 23 PM

from psyoptions-market-tracker.

johnrees avatar johnrees commented on September 3, 2024

this is an example of a hasura graphql subscription that is watching the timescale (postgres) database which is ingesting all of the serum transaction events

Kapture.2021-05-02.at.00.15.15.mp4

from psyoptions-market-tracker.

johnrees avatar johnrees commented on September 3, 2024

no worries, it'll be a quick fix

from psyoptions-market-tracker.

johnrees avatar johnrees commented on September 3, 2024

Just to keep this thread updated. This task is effectively done in terms of tracking and storing the data for an MVP, but I'm not going to close it until the little frontend app is showing more information

from psyoptions-market-tracker.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.