-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.py
62 lines (54 loc) · 1.35 KB
/
constants.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
60
61
HEADERS = {
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36"}
ALL_INDEX = {
"URL": "https://api.bseindia.com/BseIndiaAPI/api/MktCapBoard/w?",
"PAYLOAD": {
"cat": "1",
"type": "2"
}
}
INDEX_SCRIPS = {
"URL": "https://api.bseindia.com/BseIndiaAPI/api/GetMktData/w?",
"PAYLOAD": {
"ordcol": "TT",
"strType": "index",
"strfilter": ""
}
}
SCRIP_MARKET_CAP = {
"URL": "https://api.bseindia.com/BseIndiaAPI/api/StockTrading/w",
"PAYLOAD": {
"flag": "",
"quotetype": "",
"scripcode": ""
}
}
SCRIP_CURRENT_PRICE = {
"URL": "https://api.bseindia.com/BseIndiaAPI/api/getScripHeaderData/w",
"PAYLOAD": {
"scripcode": "",
"Debtflag": "",
"seriesid": ""
}
}
SCRIP_HISTORIC_PRICE = {
"URL": "https://api.bseindia.com/BseIndiaAPI/api/StockReachGraph/w",
"PAYLOAD": {
"scripcode": "",
"flag": "",
"fromdate": "",
"todate": "",
"seriesid": ""
}
}
SCRIP_ANNOUNCEMENTS = {
"URL": "https://api.bseindia.com/BseIndiaAPI/api/AnnGetData/w?",
"PAYLOAD": {
"strCat": "-1",
"strPrevDate": "",
"strScrip": "",
"strSearch": "P",
"strToDate": "",
"strType": "C"
}
}