All URIs are relative to https://api-v2.upstox.com
Method | HTTP request | Description |
---|---|---|
cancel_order | DELETE /v3/order/cancel | |
modify_order | PUT /v3/order/modify | |
place_order | POST /v3/order/place |
CancelOrderV3Response cancel_order(order_id)
from __future__ import print_function
import time
import upstox_client
from upstox_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = upstox_client.OrderApiV3()
order_id = 'order_id_example' # str |
try:
api_response = api_instance.cancel_order(order_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling OrderApiV3->cancel_order: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
order_id | str |
No authorization required
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ModifyOrderV3Response modify_order(body)
from __future__ import print_function
import time
import upstox_client
from upstox_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = upstox_client.OrderApiV3()
body = upstox_client.ModifyOrderRequest() # ModifyOrderRequest |
try:
api_response = api_instance.modify_order(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling OrderApiV3->modify_order: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | ModifyOrderRequest |
No authorization required
- Content-Type: application/json
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PlaceOrderV3Response place_order(body)
from __future__ import print_function
import time
import upstox_client
from upstox_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = upstox_client.OrderApiV3()
body = upstox_client.PlaceOrderV3Request() # PlaceOrderV3Request |
try:
api_response = api_instance.place_order(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling OrderApiV3->place_order: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | PlaceOrderV3Request |
No authorization required
- Content-Type: application/json
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]