Member-only story
Easy way to connect to Binance Exchange in Spring boot Java Application
3 min readFeb 20, 2023
Binance is a popular cryptocurrency exchange that was founded in 2017 by Changpeng Zhao. The exchange is headquartered in Malta, but it has offices in other countries as well. Binance offers a platform for users to buy, sell, and trade cryptocurrencies, including Bitcoin, Ethereum, and many other altcoins.
In this story we will make a configuration of connection to Binance Exchange through Binance API using Spring Boot.
- Step one, create your spring boot application. I’m using spring initalizr for this purpose https://start.spring.io/
- Add repository to your pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
3. Add binance-java-api dependency
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>com.github.binance-exchange</groupId>
<artifactId>binance-java-api</artifactId>
<version>master</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.22</version>
</dependency>