-
Notifications
You must be signed in to change notification settings - Fork 20
/
gtt_get_orders.json
98 lines (98 loc) · 3.3 KB
/
gtt_get_orders.json
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
{
"status": "success",
"data": [
{
"id": 112127,
"user_id": "XX0000",
"parent_trigger": null,
"type": "single",
"created_at": "2019-09-12 13:25:16",
"updated_at": "2019-09-12 13:25:16",
"expires_at": "2020-09-12 13:25:16",
"status": "active",
"condition": {
"exchange": "NSE",
"last_price": 798,
"tradingsymbol": "INFY",
"trigger_values": [
702
],
"instrument_token": 408065
},
"orders": [
{
"exchange": "NSE",
"tradingsymbol": "INFY",
"product": "CNC",
"order_type": "LIMIT",
"transaction_type": "BUY",
"quantity": 1,
"price": 702.5,
"result": null
}
],
"meta": {}
},
{
"id": 105099,
"user_id": "XX0000",
"parent_trigger": null,
"type": "two-leg",
"created_at": "2019-09-09 15:13:22",
"updated_at": "2019-09-09 15:15:08",
"expires_at": "2020-01-01 12:00:00",
"status": "triggered",
"condition": {
"exchange": "NSE",
"last_price": 102.6,
"tradingsymbol": "RAIN",
"trigger_values": [
102.0,
103.7
],
"instrument_token": 3926273
},
"orders": [
{
"exchange": "NSE",
"tradingsymbol": "RAIN",
"product": "CNC",
"order_type": "LIMIT",
"transaction_type": "SELL",
"quantity": 1,
"price": 1,
"result": null
},
{
"exchange": "NSE",
"tradingsymbol": "RAIN",
"product": "CNC",
"order_type": "LIMIT",
"transaction_type": "SELL",
"quantity": 1,
"price": 1,
"result": {
"account_id": "XX0000",
"exchange": "NSE",
"tradingsymbol": "RAIN",
"validity": "DAY",
"product": "CNC",
"order_type": "LIMIT",
"transaction_type": "SELL",
"quantity": 1,
"price": 1,
"meta": "{\"app_id\":12617,\"gtt\":105099}",
"timestamp": "2019-09-09 15:15:08",
"triggered_at": 103.7,
"order_result": {
"status": "failed",
"order_id": "",
"rejection_reason": "Your order price is lower than the current lower circuit limit of 70.65. Place an order within the daily range."
}
}
}
],
"meta": null
}
]
}