upstox-java

Upstox Java SDK Examples

This directory contains Java SDK code examples for the Upstox API, organized by category.

Prerequisites

Maven Dependency

Add the following dependency to your pom.xml:

<dependency>
    <groupId>com.upstox.api</groupId>
    <artifactId>upstox-java-api</artifactId>
    <version>LATEST</version>
    <scope>compile</scope>
</dependency>

Folder Structure

Category Description
login Authentication — get access token and logout
user User profile and fund/margin details
orders Place, modify, cancel orders and fetch order details
portfolio Positions, holdings, MTF positions, and position conversion
market-quote LTP, OHLC, full market quotes, and option greeks
historical-data Historical and intra-day candle data
option-chain Option contracts and put/call option chain
expired-instruments Expired instrument data and historical candles
market-information Exchange status, market timings, and holidays
gtt-orders Good Till Triggered (GTT) order management
margins Order margin calculations
charges Brokerage charge calculations
trade-profit-and-loss Trade-wise profit and loss reports