Giter Site home page Giter Site logo

kcsec's People

Contributors

kevincybura avatar

Watchers

 avatar  avatar

kcsec's Issues

Make ws_client more generic

The ws_client command can only support one connection at a time atm and only supports the gemini marketdata/v2 api.

Add support for the command to use custom class that have a similar api

Something like this

class WsHandler:
    def connect(self, url: str, ....):
         pass
    def on_connect(self, msg: str, ...):
         pass
    def handle_message(self, ...):
         pass

Keep track of order book

To simulate real trades we should keep track of the real order book and supplied by the gemini websocket api l1_data = wss://api.gemini.com/{version}/marketdata/{symbol}

Use mypy

I should really use mypy ๐Ÿ˜ž

steppypants-3oEjHMk9cNQCUEQgTe

Style Django authenticated pages

style all html files in kcsec/core/templates/registration/*.html . Should be able to use one css file for all of them because they are all very similar and small files

Create OHLC from trades instead of OHLC candlestick endpoint

Currently we are using the gemini candlestick endpoint which only updates every minute. Since OHLC is determined by trades we should use gemini's level 1 market data websocket endpoint l1_data = wss://api.gemini.com/{version}/marketdata/{symbol}. This would allow us to have real time updates to OHLC.

Challenges

  1. Sometimes the trading volume is so low that there wont be an trades for multiple minutes so we would have to send the last updated OHLC each minute.
  2. Have to keep track of when to set open and close.
  3. Have to keep track of high and low

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.