- $ watch -n 1 bash main.sh
- Get Data
- Calculation
- Connect to trading platform
- Email / export
- Time in New York (Wikipedia)
- New York uses Eastern Standard Time (EST, UTC -5) and Eastern Daylight Time (EDT, UTC -4)
- The project uses
moment.js
to avoid errors - All time within the project will be based on time zone of New York State
-
Both NYSE and NASDAQ shares the same holidays and trading hours (9:30 am - 4:00 pm | Mon - Fri)
-
Pre / Post market is ignored (Data is still been calculated, but no trading will happen)
-
This project will use NASDAQ's data for halfdays and holidays
Holiday | 2021 | 2022 | 2023 |
---|---|---|---|
New Years Day |
Friday, January 1 | — | Monday, January 2 (New Year's holiday observed) |
Martin Luther King, Jr. Day |
Monday, January 18 | Monday, January 17 | Monday, January 16 |
Washington's Birthday |
Monday, February 15 | Monday, February 21 | Monday, February 20 |
Good Friday |
Friday, April 2 | Friday, April 15 | Friday, April 7 |
Memorial Day |
Monday, May 31 | Monday, May 30 | Monday, May 29 |
Independence Day |
Monday, July 5 (July 4 holiday observed) | Monday, July 4 | Tuesday, July 4* |
Labor Day |
Monday, September 6 | Monday, September 5 | Monday, September 4 |
Thanksgiving Day |
Thursday, November 25** | Thursday, November 24** | Thursday, November 23** |
Christmas Day |
Friday, December 24 (Christmas holiday observed) | Monday, December 26 (Christmas holiday observed) | Monday, December 25 |
* Each market will close early at 1:00 p.m. (1:15 p.m. for eligible options) on Monday, July 3, 2023. Crossing Session orders will be accepted beginning at 1:00 p.m. for continuous executions until 1:30 p.m. on these dates, and NYSE American Equities, NYSE Arca Equities, NYSE Chicago, and NYSE National late trading sessions will close at 5:00 pm. All times are Eastern Time.
** Each market will close early at 1:00 p.m. (1:15 p.m. for eligible options) on Friday, November 26, 2021, Friday, November 25, 2022, and Friday, November 24, 2023 (the day after Thanksgiving). Crossing Session orders will be accepted beginning at 1:00 p.m. for continuous executions until 1:30 p.m. on these dates, and NYSE American Equities, NYSE Arca Equities, NYSE Chicago, and NYSE National late trading sessions will close at 5:00 pm. All times are Eastern Time.
* Algorithm finish on 3:58 pm (Running time and latency)
- Data will export / emailed if there's a change of percentage at anytime
- Otherwise data will be exported / emailed on:
- 9:35 am (5 minutes after market open)
- 4:05 pm (5 minutes after market close)
- Will only email and export if there's a data change or with duration
- Data fetched pre / post market will be stored in
data/json/marketClosed
- Data fetched durind market will be stored in
data/json/marketOpen
- Only
marketOpen
data will be calculated
- API GET
- Attrubits:
- client_request_id: uuid
- commentsLimit: int
- fromDate: timestamp
- itemsPerPage: int
- languagecode: language (en-gb)
- pageNumber: int
- repliesToCommentLimit: int
- https://www.etoro.com/api/streams/v2/streams/user-trades/OutSmartNSDQ?client_request_id=d1bc2a21-9e98-40f6-9180-606fe423d83f&commentsLimit=0&fromDate=1614996977623&itemsPerPage=5&languagecode=en-gb&pageNumber=1&repliesToCommentLimit=2