You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ The official Python client for communicating with the <a href="https://upstox.co
9
9
Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection.
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
**gtt_order_id** | **str** | Unique identifier of the GTT order to be cancelled |
7
+
8
+
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
**type** | **str** | Type of GTT order. It can be one of the following: SINGLE refers to a single-leg GTT order MULTIPLE refers to a multi-leg GTT order |
7
+
**quantity** | **int** | Quantity with which the order is to be placed |
8
+
**rules** | [**list[GttRule]**](GttRule.md) | List of rules defining the conditions for each leg in the GTT order |
9
+
**gtt_order_id** | **str** | Unique identifier of the GTT order to be modified |
10
+
11
+
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
**gtt_order_ids** | **list[str]** | Order ID for the placed GTT order | [optional]
7
+
8
+
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
**type** | **str** | Type of GTT order. It can be one of the following: SINGLE refers to a single-leg GTT order MULTIPLE refers to a multi-leg GTT order |
7
+
**quantity** | **int** | Quantity with which the order is to be placed |
8
+
**product** | **str** | Signifies if the order was either Intraday, Delivery, CO or OCO |
9
+
**rules** | [**list[GttRule]**](GttRule.md) | List of rules defining the conditions for each leg in the GTT order |
10
+
**instrument_token** | **str** | Key of the instrument |
11
+
**transaction_type** | **str** | Indicates whether its a buy or sell order |
12
+
13
+
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
**strategy** | **str** | Defines the strategy for the GTT order leg: ENTRY - First leg order STOPLOSS - Stop-loss order TARGET - Target order |
7
+
**trigger_type** | **str** | Trigger type for each leg of the order |
8
+
**trigger_price** | **float** | Trigger price for the GTT order leg |
9
+
10
+
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
[[Back to top]](#)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to Model list]](../README.md#documentation-for-models)[[Back to README]](../README.md)
62
+
11
63
# **cancel_order**
12
64
> CancelOrderV3Response cancel_order(order_id)
13
65
@@ -53,6 +105,110 @@ No authorization required
53
105
54
106
[[Back to top]](#)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to Model list]](../README.md#documentation-for-models)[[Back to README]](../README.md)
**gtt_order_id** | **str**| Unique identifier of the GTT order for which the order history is required | [optional]
144
+
145
+
### Return type
146
+
147
+
[**GetGttOrderResponse**](GetGttOrderResponse.md)
148
+
149
+
### Authorization
150
+
151
+
[OAUTH2](../README.md#OAUTH2)
152
+
153
+
### HTTP request headers
154
+
155
+
-**Content-Type**: Not defined
156
+
-**Accept**: */*, application/json
157
+
158
+
[[Back to top]](#)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to Model list]](../README.md#documentation-for-models)[[Back to README]](../README.md)
159
+
160
+
# **modify_gtt_order**
161
+
> GttTriggerOrderResponse modify_gtt_order(body)
162
+
163
+
Modify GTT order
164
+
165
+
This API allows you to modify GTT orders.
166
+
167
+
### Example
168
+
```python
169
+
from__future__import print_function
170
+
import time
171
+
import upstox_client
172
+
from upstox_client.rest import ApiException
173
+
from pprint import pprint
174
+
175
+
# Configure OAuth2 access token for authorization: OAUTH2
[[Back to top]](#)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to Model list]](../README.md#documentation-for-models)[[Back to README]](../README.md)
211
+
56
212
# **modify_order**
57
213
> ModifyOrderV3Response modify_order(body)
58
214
@@ -98,6 +254,58 @@ No authorization required
98
254
99
255
[[Back to top]](#)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to Model list]](../README.md#documentation-for-models)[[Back to README]](../README.md)
100
256
257
+
# **place_gtt_order**
258
+
> GttTriggerOrderResponse place_gtt_order(body)
259
+
260
+
Place GTT order
261
+
262
+
This API allows you to place GTT orders.
263
+
264
+
### Example
265
+
```python
266
+
from__future__import print_function
267
+
import time
268
+
import upstox_client
269
+
from upstox_client.rest import ApiException
270
+
from pprint import pprint
271
+
272
+
# Configure OAuth2 access token for authorization: OAUTH2
[[Back to top]](#)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to Model list]](../README.md#documentation-for-models)[[Back to README]](../README.md)
0 commit comments