-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIG_API_Details.py
59 lines (43 loc) · 959 Bytes
/
IG_API_Details.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
'''
Module for storing IG API Key and Account Information.
Created on Tuesday 12th March 2024
@author: Harry New
'''
# - - - - - - - - - - - - - - - - - - -
# IG API Key and Account Input
header = {
"Content-Type":"application/json; charset=UTF-8",
"Accept":"application/json; charset=UTF-8",
"VERSION":"2",
"X-IG-API-KEY":""
}
body = {
"identifier": "",
"password": "",
"encrytedPassword":False
}
key = ""
account_type = ""
account_number = ""
# - - - - - - - - - - - - - - - - - - -
class config(object):
username = ""
password = ""
api_key = ""
acc_type = "LIVE" # LIVE / DEMO
acc_number = ""
# - - - - - - - - - - - - - - - - - - -
def get_header():
return header
def get_body():
return body
def get_username():
return body["identifier"]
def get_password():
return body["password"]
def get_key():
return key
def get_account_type():
return account_type
def get_account_number():
return account_number