Skip to content

Latest commit

 

History

History
145 lines (97 loc) · 3.61 KB

OrderApiV3.md

File metadata and controls

145 lines (97 loc) · 3.61 KB

upstox_client.OrderApiV3

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

cancel_order

CancelOrderV3Response cancel_order(order_id)

Example

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)

Parameters

Name Type Description Notes
order_id str

Return type

CancelOrderV3Response

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

[Back to top] [Back to API list] [Back to Model list] [Back to README]

modify_order

ModifyOrderV3Response modify_order(body)

Example

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)

Parameters

Name Type Description Notes
body ModifyOrderRequest

Return type

ModifyOrderV3Response

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: /

[Back to top] [Back to API list] [Back to Model list] [Back to README]

place_order

PlaceOrderV3Response place_order(body)

Example

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)

Parameters

Name Type Description Notes
body PlaceOrderV3Request

Return type

PlaceOrderV3Response

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: /

[Back to top] [Back to API list] [Back to Model list] [Back to README]