@firosh bro can you share your project for C#, I want to start learning but not sure from where to start.
Posts made by techtrader86
-
RE: getRMS() always gives wrong fund balanceposted in C#/.Net SDK
-
RE: Code for placing the order using request moduleposted in Python SDK
@techtrader86 said in Code for placing the order using request module:
Hi All,
Can someone share the code for placing the order using request module as i'm getting below error "print exception Expecting value: line 1 column 1 (char 0)". Find my code below.
try:
orderparams = {
"variety": "NORMAL",
"tradingsymbol":"SBIN-EQ",
"symboltoken": "3045",
"transactiontype": "BUY",
"exchange": "NSE",
"ordertype": "LIMIT",
"producttype": "INTRADAY",
"duration": "DAY",
"price": "10",
"squareoff": "0",
"stoploss": "10",
"quantity": 1
}
# #print(ConnObj.placeOrder(orderparams))
# orderId=ConnObj.placeOrder(orderparams)
# print("The order id is: {}".format(orderId))
HEADERS = {
'Authorization': tokenAgle,
'Content-Type': 'application/json',
'Accept': 'application/json',
'X-UserType': 'USER',
'X-SourceID': 'WEB',
'X-ClientLocalIP': '127.0.0.1',
'X-ClientPublicIP': '106.193.147.98',
'X-MACAddress': '00-15-5D-7D-9C-C3',
'X-PrivateKey': ANGL_API_KEY
}
r = requests.post(ORDERS_URL, data=orderparams, headers=HEADERS)
#print("The order id is: {}".format(orderId))
print(r)
response = json.loads(r.content)
print(response)
except Exception as e:
print("print exception ", e) -
Code for placing the order using request moduleposted in Python SDK
Hi All,
Can someone share the code for placing the order using request module as i'm getting below error "print exception Expecting value: line 1 column 1 (char 0)". Find my code below.
try:
orderparams = {
"variety": "NORMAL",
"tradingsymbol":"SBIN-EQ",
"symboltoken": "3045",
"transactiontype": "BUY",
"exchange": "NSE",
"ordertype": "LIMIT",
"producttype": "INTRADAY",
"duration": "DAY",
"price": "10",
"squareoff": "0",
"stoploss": "10",
"quantity": 1
}# #print(ConnObj.placeOrder(orderparams)) # orderId=ConnObj.placeOrder(orderparams) # print("The order id is: {}".format(orderId)) HEADERS = { 'Authorization': tokenAgle, 'Content-Type': 'application/json', 'Accept': 'application/json', 'X-UserType': 'USER', 'X-SourceID': 'WEB', 'X-ClientLocalIP': '127.0.0.1', 'X-ClientPublicIP': '106.193.147.98', 'X-MACAddress': '00-15-5D-7D-9C-C3', 'X-PrivateKey': ANGL_API_KEY } r = requests.post(ORDERS_URL, data=orderparams, headers=HEADERS) #print("The order id is: {}".format(orderId)) print(r) response = json.loads(r.content) print(response) except Exception as e: print("print exception ", e) -
RE: Migrate to APIposted in General Discussion
@admin What is this error all about as i searched the forum they are saying after migration it was resolved.
-
Migrate to APIposted in General Discussion
Hi Team, Please migrate my id G55067 to new system. As of now , I'm getting below error "print exception Expecting value: line 1 column 1 (char 0)"
-
RE: "YOUR USER ID OR PASSWORD IS INVALID","errorcode":"AB1007"posted in General Discussion
Please migrate G55067 to new system as i'm getting errors with below url for publisher api
-
RE: 1) Redirect URL 2) steps to connect with Python and get option chain live dataposted in General Discussion
I think you can fetch the data from NSE for option chain instead of Angel Broking as i can't see a mechanism unless you want to write the code for option strikes seperately
-
How to close the already placed orderposted in Python SDK
Hi All,
I placed one order using the api , now before placing a new order i want to close the existing order.
I want to put the sell command for already existing order or is there any way to square off the order by using order id like we do on web application.