Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
techfanetechnologies
GitHub Repository: techfanetechnologies/qtsapp
Path: blob/main/example.py
201 views
1
# -*- coding: utf-8 -*-
2
3
"""
4
Created on Mon August 8, 08:09:56 2022
5
@author: DrJuneMoone
6
"""
7
8
import logging
9
from qtsapp import *
10
11
##############################################################################
12
# If You Need Logging, uncomment The BeloW Line
13
# logging.basicConfig(level=logging.DEBUG)
14
15
global qtsapp, stream, _is_running_live, first_connect
16
_is_running_live = False
17
first_connect = True
18
19
##############################################################################
20
# If Not Using Ms.Office 365
21
wb_name = "OptionChain"
22
23
# If You Are Using Ms.Office 365 Then Uncomment The Below Line.
24
# wb_name = "OptionChain365"
25
26
##############################################################################
27
# Note: If All Greeks Icluding 3rd Order Greeks Is Required To Be Streaming
28
# In Excel And Terminal, Then Use stream=True, OtherWise To fet 7-9 Second
29
# SnapShot of Option Chain use stream=False
30
stream = True
31
32
##############################################################################
33
if __name__ == "__main__":
34
EnchantQtsApp(
35
stream=stream,
36
_is_running_live=_is_running_live,
37
first_connect=first_connect,
38
wb_name=wb_name,
39
)
40
41