I open a buy position on 100 now price is 102 So I want to close open position.
Please tell me how close my active position using api.
what parameters required for this.
Ved
@Ved
Best posts made by Ved
-
how to close open positionposted in General Discussion
-
RE: Invalid Token Errorposted in Python SDK
same issue for me.
Status : 200{"success":false,"message":"Invalid Token","errorCode":"AG8001","data":""}
Latest posts made by Ved
-
75 minutes candleposted in General Discussion
Hi,
I found 75 minutes candle in angelone app. Can any tell me how to get 75 minutes historical candle data. -
RE: Invalid Token Errorposted in Python SDK
same issue for me.
Status : 200{"success":false,"message":"Invalid Token","errorCode":"AG8001","data":""} -
RE: how to get LTP for USDINR and BANKNIFTYposted in General Discussion
@Mnagesh
I can't find USDINR token code. Can you share me USDINR token code?
eg.
BANKNIFTY : 26009
NIFTY : 26000
USDINR : ?
<-- my code -->
$data["clientcode"] = "client id";
$data["exchange"] ="CDS";
$data["tradingsymbol"] ="USDINR";
$data["symboltoken"]= ? ;
$url = 'https://apiconnect.angelbroking.com/rest/secure/angelbroking/order/v1/getLtpData';
$jsonData = json_encode($data);
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_POSTFIELDS, $jsonData);
curl_setopt($curl, CURLOPT_HEADEROPT, CURLHEADER_UNIFIED);
curl_setopt($curl, CURLOPT_HTTPHEADER, $tradeheaders);curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);$result = curl_exec($curl);
$http_status = curl_getinfo($curl, CURLINFO_HTTP_CODE);echo '<br/>Response Status : ' . $http_status;
echo '<br/>Response String : ' . $result;//To Convert json response to array
$resJsonArray = json_decode($result, true);
$mms = $resJsonArray['message'];
echo " mms ".$mms;
echo "<br><br>";
$ltp = $resJsonArray['data']['ltp']; echo "<br>ltp".$ltp; -
how to get LTP for USDINR and BANKNIFTYposted in General Discussion
how to get market price for USDINR and BANKNIFTY
-
Currency trading possibleposted in General Discussion
Currency trading possible or not using api. If yes please refrence for currency api.
-
how to close open positionposted in General Discussion
I open a buy position on 100 now price is 102 So I want to close open position.
Please tell me how close my active position using api.
what parameters required for this. -
how to get SBIN stock ASK price and BID price in phpposted in General Discussion
how to get SBIN stock ASK price and BID price in php
-
can I fetch all type dataposted in General Discussion
Can I fetch all type data from single API ( trade API ). I mean can I fetch historical data , market data and portfolio data using Trade API .
If YES its great for me.
If NO. please update your api system and save your and users access limit.
I think due to login in three API in one query I receive message l
receive "{"message":"Something Went Wrong, Please Try After Sometime","errorcode":"AB1004","status":false,"data":null}" -
real fund and ask bidposted in General Discussion
I want to fetch ask and bid . can you tell me how can possible fetch ask and bid.
-
RE: I want fetch specific holdingposted in General Discussion
@webseos i have 3 stock ( BHEL-EQ, SBIN-EQ,NHPC-EQ) in holding. now I want to fetch only BHEL-EQ stock quantity and average price from the exchange using api.