Upstox not connecting and giving me access to live feed

Dear Upstox Support Team,

I am writing to seek assistance with connecting my trading application to Upstox’s Market Data Feed. Despite having valid API credentials and access tokens, my system is unable to establish a live data connection.

My Application Details:

Application Type: Algorithmic Trading Bot (EminenceBot)

Technology Stack: Node.js, WebSocket connections

API Version: Attempting both V2 and V3 Market Data Feeds

User ID: 4FCB98 (from token)

Current Issues:

Market Data Feed V3 Authorization Failure:

Endpoint: https://api.upstox.com/v3/feed/market-data-feed/authorize

Error: UDAPI100012 - Invalid Endpoint

Status: HTTP 400 Bad Request

The V3 endpoint consistently returns “Invalid Endpoint” error

Portfolio API Failures:

Endpoint: /v2/portfolio/long-term-positions

Status: HTTP 400 Bad Request

Error: “Live positions data unavailable - check Upstox connection”

WebSocket Connection Issues:

V2 WebSocket authorization works but no live data received

V3 WebSocket fails at authorization stage

What I Have Already Done:

:white_check_mark: Token Validation:

Successfully validated access token with /user/profile endpoint

Token is fresh and valid (expires: 1758924000)

User profile API returns successful response

:white_check_mark: API Credentials Verified:

API Key: Configured and valid

API Secret: Configured and valid

Access Token: Generated fresh from Upstox developer console

All tokens are live/production tokens (not demo)

:white_check_mark: Technical Implementation:

Implemented proper authorization headers

Used correct Content-Type: application/json

Followed Upstox API documentation exactly

Tested both V2 and V3 endpoints

Implemented proper error handling and retry logic

:white_check_mark: Network & Security:

No firewall blocking outbound connections

SSL/TLS connections working properly

Able to connect to Upstox APIs for authentication

Current System Status:

:white_check_mark: Authentication APIs: Working (user profile, token validation)

:cross_mark: Market Data Feed V3: Failing with UDAPI100012

:cross_mark: Portfolio APIs: Returning 400 errors

:cross_mark: WebSocket Live Data: Not receiving real-time feeds

:warning: System Status: Operating in simulation mode with mock data

Console Error Examples:

:cross_mark: V3 Authorization FAILED with HTTP status: 400

:cross_mark: V3 Response data: {“status”:“error”,“errors”:[{“errorCode”:“UDAPI100012”}]}

Failed to get positions: Error: Live positions data unavailable - check Upstox connection

Questions for Support:

Market Data Feed V3 Access: Is the V3 Market Data Feed endpoint enabled for my developer account (API Key: [my_api_key])? The UDAPI100012 error suggests either:

The endpoint doesn’t exist for my account type

My application lacks the required permissions

The V3 feed is not available in my plan

Required Permissions: What specific permissions/scopes are needed for:

Market Data Feed V3 WebSocket access

Portfolio/positions data access

Live market data streaming

Account Verification: Can you verify if my account (User ID: 4FCB98) has the necessary permissions enabled for market data APIs?

Alternative Solutions: If V3 is not available, what is the recommended approach for real-time market data access?

Technical Environment:

Server: Node.js application on Replit

WebSocket Implementation: ws library with protobuf support

Request Library: axios with proper headers

Error Handling: Comprehensive logging and fallback mechanisms

I have spent considerable time implementing and debugging this integration. The system architecture is sound (authentication works perfectly), but the market data endpoints consistently fail. Any guidance on resolving these permission/access issues would be greatly appreciated.

Please let me know if you need any additional information, logs, or API call traces to help diagnose this issue.

Thank you for your assistance.

Best regards,

Manish kumar

Developer - EminenceBot Trading System

Contact: Eminence302516@gmail.com

Account ID: 4FCB98