real-time-trading's Introduction
real-time-trading's People
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
Clean up frontend codes
- remove useless code
- refactor codes
ibapp: handle disconnection when tws exits
update the on_discounted
event handler to handle ConnectionRefusedError
and try to reconnect until success.
Use offsets to fitler out all old messages
- For
Trader
, only process the events fortoday
- Run topic clean up every time
Trader
restart - For
app.py
, also only process the events fortoday
add retrospective
Currently ReaTimeTrading
and app.py
only support processing events from today
.
correct intraday and top high calculation and emit
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.
Add unit tests
Deal with duplicates intrady high and low events after restarting RTT
Currently need to remove all intraday high and low events (by deleting kafka topic) which is not ideal
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)
trader: auto reset states
Automatically reset the states of trader
, intrady_ticker
between days
publish website
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 precommit and hooks
logging handling
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
IntradayTicker
is responsible for calculating each ticker's largest high and low (current)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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.