@projectSB But how to get the "uniqueOrderID" as once you placed order, you usually get the order id not uniqueOrderID. can you please share some light.
@Moderator_2 , @projectSB
Posts made by bm0126782
-
RE: Individual order status API throws error for unknown reason!
-
RE: Connection Error while login.
@Phanilbb same with me.
ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
Don't know what happen.
@admin123 -
Data API can support
Hello,
What are different data we can fetch though this API.
More in detail : does this API share given Stock fundamentals as well? -
RE: What is limit of Max retries to access /historical/v1/getCandleData
ConnectTimeout: HTTPSConnectionPool(host='apiconnect.angelbroking.com', port=443): Max retries exceeded with url: /rest/secure/angelbroking/historical/v1/getCandleData (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x000002CA7F4AA010>, 'Connection to apiconnect.angelbroking.com timed out. (connect timeout=7)'))
Can some one please help me here...
Thanks in advance
@admin @admin123 -
RE: Authentication error
@C50781558 I don't have algo software in my company.
what you are interested to tell? -
What is limit of Max retries to access /historical/v1/getCandleData
ConnectionError: HTTPSConnectionPool(host='apiconnect.angelbroking.com', port=443): Max retries exceeded with url: /rest/secure/angelbroking/historical/v1/getCandleData (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0000023708D9FB90>: Failed to establish a new connection: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions'))
What is limit of Max retries with url: /rest/secure/angelbroking/historical/v1/getCandleData ?
@admin @admin123 @administrators -
RE: Authentication error
As per the github documentation, these are the deatils need to define.
I knew about the api_key ,clientId , pwdapi_key = 'Your Api Key'
clientId = 'Your Client Id'
pwd = 'Your Pin'
smartApi = SmartConnect(api_key)
token = "Your QR code value"
totp=pyotp.TOTP(token).now()
correlation_id = "abc123"from where I will get the token , correlation_id ?
@admin123 @admin @MNAGESH
Can you please help me here, I am starting over this API. -
Authentication error
Define the API endpoints
login_url = 'https://smartapi.angelbroking.com/rest/auth/login'
market_data_url = 'https://smartapi.angelbroking.com/rest/secure/angelbroking/currentdayextremes'Prepare the request headers for authentication
headers = {
'Content-Type': 'application/x-www-form-urlencoded',
}Prepare the request data for authentication
data = {
'api_key': api_key,
'password': api_secret,
}Authenticate and obtain an access token
response = requests.post(login_url, data=data, headers=headers)
if response.status_code == 200:
access_token = response.json()['data']['accessToken']# Prepare headers for fetching market data with the access token headers = { 'Authorization': f'Bearer {access_token}', 'Content-Type': 'application/json', } # Fetch today's Bank Nifty price response = requests.get(market_data_url, headers=headers) if response.status_code == 200: try: market_data = response.json() today_banknifty_price = market_data['data']['CASH']['BANKNIFTY'] print(f"Today's Bank Nifty Price: {today_banknifty_price}") except json.JSONDecodeError: print("Error: Unable to decode JSON response.") else: print(f"Error fetching market data: {response.status_code} - {response.text}")
else:
print(f"Authentication error: {response.status_code} - {response.text}")kindly please guide where I am doing mistake.
-
HISTORICAL DATA of candlesticks for at least 5 / 15 min timeframe
Hello,
Please lets us know when we can use the historical database of the stocks for at least 5 min timeframe.
-
RE: I want 20 candle data for 15 minutes timeframe
@admin When we can have the historical data ?
Because of this I could not bale to test your API. I need to like see my code and strategy back tested. Please implement as early as possible.