@admin thanks. any way to get past contract data for Nifty futures on 1 min or 5 min or 15 mn timeframes?
Posts made by abhay15.akshukla
-
RE: Nifty Futures historical dataposted in Python SDK
-
RE: Nifty Future market priceposted in Python SDK
@admin thanks. I was looking fo Nifty futures contract but used wrong token for tick data call. Its sorted now.
-
Nifty Futures historical dataposted in Python SDK
The https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json does not provide token numbers for past or historical contracts of Nifty Futures. How can I retrieve Nifty futures historical data without knowing what token to use, which is mandatory field for https://apiconnect.angelone.in/rest/secure/angelbroking/historical/v1/getCandleData api and has this request format: {
"exchange": "NSE",
"symboltoken": "99926000",
"interval": "ONE_HOUR",
"fromdate": "2023-09-06 11:15",
"todate": "2023-09-06 12:00"
} -
Nifty Future market priceposted in Python SDK
I am able to connect to web socket and authentication succeed. I subscribe in LTP mode (mode=1) for nifty future (Nov 2025 contract) and receiving tick data. Nifty Nov future contract token is 38312 based on https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json.
The LTP value in tick data is completely off. How to get right market price from tick data. Snippet of console output:
[DEBUG] Data keys: ['subscription_mode', 'exchange_type', 'token', 'sequence_number', 'exchange_timestamp', 'last_traded_price', 'subscription_mode_val']
[DEBUG] Data sample: {'subscription_mode': 1, 'exchange_type': 2, 'token': '38312', 'sequence_number': 18765872, 'exchange_timestamp': 1762234836588, 'last_traded_price': 7051240, 'subscription_mode_val': 'LTP'}