-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.py
34 lines (30 loc) · 1.12 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
######### Order Type ##############
LIMIT_ORDER = 1
MARKET_ORDER = 2
STOP_ORDER = 3
STOP_LIMIT_ORDER = 4
######### Side ##############
BUY_ORDER = 1
SELL_ORDER = -1
######### Product Types ##############
INTRADAY = "INTRADAY"
COVER_ORDER = "CO"
######### Status Codes ##############
SUCCESS = "ok"
ERROR = "error"
######### Audio links################
ORDER_PLACED_SUCCESS = './audio/order_placed.mp3'
ORDER_PLACED_FAILURE = './audio/order_not_placed.mp3'
MODIFY_ORDER_SUCCESS = './audio/order_placed.mp3'
MODIFY_ORDER_FAILURE = './audio/stop_loss_not_updated.mp3'
STOP_LOSS_UPDATED_SUCCESS = './audio/order_placed.mp3'
STOP_LOSS_UPDATED_FAILURE = './audio/order_placed.mp3'
ORDER_CANCELLED_SUCCESS = './audio/order_placed.mp3'
ORDER_CANCELLED_FAILURE = './audio/order_placed.mp3'
ORDER_CANCELLED_SUCCESS = './audio/order_placed.mp3'
ORDER_CANCELLED_FAILURE = './audio/order_placed.mp3'
ORDER_EXIT_SUCCESS = './audio/order_placed.mp3'
ORDER_EXIT_FAILURE = './audio/order_placed.mp3'
POSITION_FOUND_SUCCESS = './audio/position_found.mp3'
SL_UPDATED_SUCCESS = './audio/sl_updated.mp3'
POSITION_DELETED_SUCCESS = './audio/position_deleted.mp3'