forked from PeaceLaced/tda-art
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_algorithmic_retail_trader.py
45 lines (32 loc) · 1.05 KB
/
run_algorithmic_retail_trader.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat 27 Nov 03:42:45 2021
- NOTICE:
- for educational purposes only
- not financial advice
- SUPPORT:
- https://www.twitch.tv/peacelaced
- https://www.patreon.com/peacelaced
- Donate Crypto:
- WAX: rd2wo.wam
- CoinBase: @peacelaced
- MetaMask: 0x567ec43065991e4269Be19F4aEcac8C93c587619
@author: Brandon Black (PeaceLaced)
@source: https://github.com/PeaceLaced/tda-art
"""
import sys
import asyncio
from z_art.progress_report.api_progress_report import Progress as progress
progress.w('IDENTIFY_SCRIPT_(run_algorithmic_retail_trader.py)')
opts = [opt for opt in sys.argv[1:] if opt.startswith("-")]
if "-gui" in opts:
# import gui app (does NOT exist)
from z_art.app_gui import gui_main
# call the main gui function (does NOT exist)
gui_main()
else:
# import the main cli function from __main__
from z_art.__main__ import cli_main
# call the main function with asyncio capability
asyncio.run(cli_main())