Giter Club home page Giter Club logo

real-time-trading's Introduction

Day Trading

real-time-trading's People

Contributors

mortimerliu avatar

Watchers

 avatar

real-time-trading's Issues

Add more contracts: 200+

  • add 100 to mortimierliu0
  • add 100 to mortimerliu1

How to select the 200

  • enough volume?
  • enough volatility?

Directory refactor

Refactor the directory structure

Goal: Enable running codes outside of the directory

add retrospective

Currently ReaTimeTrading and app.py only support processing events from today.

ibc: username and password issue

Issue: invalid username or password every morning.

the issue seems gone for now after creating separate paper trading username and password.

optimize frontend

  • make the consecutive high or low sign symbol solid
  • change time to local in websocket messages (although not nessssory as js can handle it automatically)

Use UTC time aware datetime universally

  • RawTicker: read and write messages

Solution: define a new class UTCDatetime representing utc time and always be timezone aware. use this class internally everywhere. In this way, we can gaurantee that the datetime is actually in UTC and tz aware

Add Top high events

Show top 4 increasing stocks and top 4 descreasing of the day at the top of the page

  • Kafka topic names: top-high, top-low
  • data structure: TopSymbol, TopNSymbols

Design

  1. IntradayTicker is responsible for calculating each ticker's largest high and low (current)
  2. RealTimeTrading then ranks all tickers accordingly and emit events
    a. when to rank: every message
    b. when to emit: only when the top symbols changed (including pricing changes)

Add support for core trading hours; bake in/out time

  • Apply a filter to the RawTicker events. Only cosume events within the core trading hours, exlcuding optional bake in/out time.
  • The core trading hours could be obtained from exchange_calendars
  • In this implementation, the core trading hours are determined based on NASDAQ exchange

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.