Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Fyers Java SDK : fyers-api-v3 - v1.0.0

The official Fyers Java SDK for API-V3 Users FYERS API.

Fyers API is a set of REST-like APIs that provide integration with our in-house trading platform with which you can build your own customized trading applications.

Documentation

Usage

  • Create a Maven Project, Use VS Code (or any preferred IDE) to create a Maven project.

  • Inside the project’s root folder, create a new folder named repo. Kindly refer to fyers-javasdkfolder for project’s structure.

  • Download the fyersjavasdk.jar file and place it in the project's root folder.

  • Open Git Bash and navigate to the folder containing the JAR file. Run the following Maven command to deploy the JAR to your local repository:

mvn deploy:deploy-file -Durl="file:repo" -Dfile=fyersjavasdk.jar -DgroupId=com.tts.in -DartifactId=fyersjavasdk -Dpackaging=jar -Dversion=1.0
  • Open the project in VS Code and navigate to the pom.xml file. Add the following dependencies inside the tag:
    <dependencies>
        <dependency>
            <groupId>com.tts.in</groupId>
            <artifactId>fyersjavasdk</artifactId>
            <version>1.0</version>
        </dependency>
        <dependency>
            <groupId>org.json</groupId>
            <artifactId>json</artifactId>
            <version>20211205</version>
        </dependency>
    </dependencies>
  • Add the following inside the tag:
    <dependencies>
        <dependency>
            <groupId>com.tts.in</groupId>
            <artifactId>fyersjavasdk</artifactId>
            <version>1.0</version>
        </dependency>
        <dependency>
            <groupId>org.json</groupId>
            <artifactId>json</artifactId>
            <version>20211205</version>
        </dependency>
    </dependencies>

Please review the pom.xml file in fyers-javasdk folder for better clarity.

  • In the terminal, run the following command to clean and package the project:"mvn clean package"

  • After the build is successful, the SDK is ready to use. Open the App.java file located in src/main and try running the sample code from the Fyers API documentation.

APIs Supported by Fyers Java SDK

User

  • Profile
  • Funds
  • Holdings

Transaction Info

  • Orders
  • Positions
  • Trades

Order Placement

  • Place Order
  • Place MultiLeg Order

Other Transactions

  • Modify Orders
  • Cancel Order
  • Exit Position
  • Convert Position

Broker Config

  • Market Status

Data Api

  • History
  • Quotes
  • Market Depth
  • Option Chain

Web Socket

General Socket

  • General Socket (orders)
  • General Socket (trades)
  • General Socket (positions)
  • General Socket (general)

Market Data

  • Market Data Symbol Update
  • Market Data Indices Update
  • Market Data Depth Update
  • Market Data Lite-Mode

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages