JBinanceAPI - An easy to maintain java library that will cover all available Binance endpoints & stream

Overview

Alt text

JBinanceAPI

An easy to maintain java library that will cover all available Binance endpoints & stream
JBinanceAPI use reflection for sending request (using a proxy) & parsing responses (using JSavON)

Documentation of each endpoint can be found here :
https://binance-docs.github.io/apidocs/#change-log

Requiered libraries :

Please note that a lot of endpoints needs to be tested. If you find a bug, please report it in the issues section

Features

The version refer to the last date the API has been modified.

Meaning of symbols :
✔️ - Implemented
- Not implemented

All the fields will be implemented.

Spot Usd-M Coin-M Options
Trades ✔️ ✔️ ✔️ ✔️
Market Data ✔️ ✔️ ✔️ ✔️
User Stream
Market Data Stream
Testnet

Currently implementing : Market Data Stream

Spot Usd-M Coin-M Options
Version 2022-01-30 2022-02-01 2022-02-01 2022-01-30
Implemented Version
BLVT ✔️ 2022-01-30
BSwap ✔️ 2022-01-30
C2C ✔️ 2022-01-30
Convert ✔️ 2022-01-30
CryptoLoans ✔️ 2022-01-30
Fiat ✔️ 2022-01-30
Futures ✔️ 2022-01-30
Giftcard ✔️ 2022-01-30
Margin ✔️ 2022-01-27
Mining ✔️ 2022-01-30
NFT ✔️ 2022-01-30
Pay ✔️ 2022-01-30
Rebate ✔️ 2022-01-30
Savings ✔️ 2022-01-28
Sub-Account ✔️ 2022-01-27
Wallet ✔️ 2022-01-26

Usage

Creating a client

As guest

BinanceClient client = BinanceClient.createGuest();

With Api Key & Api Secret

BinanceCredenticals credenticals = new BinanceCredenticals(apiKey, apiSecret);
BinanceClient client = BinanceCient.create(credenticals);  

or

BinanceClient client = BinanceCLient.create(apiKey, apiSecret);

Login

client.login(); //For testing your credenticals

Placing an order

SpotOrderRequest order = NewOrderRequest.spot()
        .setSymbol("BTCUSDT")
        .setSide(OrderSide.BUY)
        .setType(SpotOrderTypes.MARKET)
        .setQuantity(0.001)
        .build();

SpotOrder response = client.spot().trade().postOrder(order);

Getting Candlesticks

List<BasicCandlestick> candlesticks = client.spot().market().getCandlesticks("BTCUSDT", Intervals.HOUR_1, 1000);

For the last 1 000 hourly candlesticks

Sending a custom request

BinanceHttpRequest request = BinanceHttpRequest.newBuilder()
        .setEndpoint(...)
        .setBaseEndpoint(...)
        .//Customize your request
        .build()
  
//T can be JSONObject or a JSONArray
T response = client.getHttpClient().execute(request);

Donation

As a student, any help will be appreciated

BTC : 1JJZrkZEynrCqoPrJWKbtGLSyJziDmKKka
ETH : 0xe349abf167a8d265785b256666737ecd5720d4bd
BNB : bnb136ns6lfw4zs5hg4n85vdthaad7hq5m4gtkgf23
TAG : 107019672

You might also like...

Java XML library. A really cool one. Obviously.

XMLBeam This is a Java XML library with an extraordinary expressive API. By using XPath for read and write operations, many operations take only one l

Aug 25, 2022

Java serialization library, proto compiler, code generator

Java serialization library, proto compiler, code generator

A java serialization library with built-in support for forward-backward compatibility (schema evolution) and validation. efficient, both in speed and

Dec 23, 2022

Discord IPC - Pure Java 16 library

Pure Java 16 library for interacting with locally running Discord instance without the use of JNI.

Nov 14, 2022

A Local implementation of a java library functions to create a serverside and clientside application which will communicate over TCP using given port and ip address.

A Local implementation of a java library functions to create a serverside and clientside application which will communicate over TCP using given port and ip address.

A Local implementation of java library functions to create a serverside and clientside application which will communicate over TCP using given port and ip address.

Feb 12, 2022

This library provides facilities to match an input string against a collection of regex patterns.

This library provides facilities to match an input string against a collection of regex patterns. This library acts as a wrapper around the popular Chimera library, which allows it to be used in Java.

Oct 26, 2022

Apache OpenNLP library is a machine learning based toolkit for the processing of natural language text

Welcome to Apache OpenNLP! The Apache OpenNLP library is a machine learning based toolkit for the processing of natural language text. This toolkit is

Dec 29, 2022

Scaffolding is a library for Minestom that allows you to load and place schematics.

This library is very early in development and has too many bugs to count. For your own safety, you should not use it in a production environment.

Nov 29, 2022

Crackersanimator is a particle system library that works with the standard Android UI

Crackersanimator is a particle system library that works with the standard Android UI

Crackersanimator is a particle system library that works with the standard Android UI. This library build from https://github.com/plattysoft/Leonids library but make some update to support for latest version of android.

Jun 14, 2022

Modern Java - A Guide to Java 8

Modern Java - A Guide to Java 8 This article was originally posted on my blog. You should also read my Java 11 Tutorial (including new language and AP

Jan 5, 2023
Releases(1.0.4)
Owner
null
A Java Telegram bot that provides thirukkural in tamil, english translations with all information!

A Java Telegram bot that provides thirukkural in tamil, english translations with all information!

VINU 5 Oct 19, 2022
Feature Flags for Java made easy

✨ ✨ ✨ FF4J - Feature Flipping for Java ✨ ✨ ✨ FF4j, is an implementation of the Feature Toggle pattern. ?? Features Feature Toggle: Enable. and disable

FF4j 1.1k Dec 25, 2022
Sauron, the all seeing eye! It is a service to generate automated reports and track migrations, changes and dependency versions for backend services also report on known CVE and security issues.

SAURON - VERSION AND DEPLOYMENT TRACKER DESCRIPTION Sauron, the all seeing eye! It is a service to generate automated reports and track migrations, ch

FREENOWTech 20 Oct 31, 2022
Public API for all of ID2R's projects

Public API for all of ID2R's projects. This API contains some useful utilities and tools that will help ID2R to deliver high quality code. originally developed by Invvk.

ID2R Studios 3 Sep 8, 2022
Algorithms of all types of sorting

Sorting-Algorithms Algorithms of all types of sorting. Bubble_sort.java Bucket_sort.java Cocktail_sort.java Comb_sort.java Counting_sort.java Cycle_so

Ashish Kumar 19 Nov 21, 2022
An easy to use Hindi keyboard Android app

AasaanHindi-Keyboard-app An easy to use Hindi keyboard Android app. Easy and fast Hindi typing.

Ankit Kumar 1 Jan 20, 2022
Lightweight and easy-to-use SkinChangerAPI for Bukkit plugin

Lightweight and easy-to-use SkinChangerAPI for Bukkit plugin

Gabriel MERCIER 6 Jul 1, 2022
lobster is an easy-to-use Discord bot to play music in any voice channel

lobster is an easy-to-use Discord bot to play music in any voice channel

lundy 6 Apr 8, 2022
icecream-java is a Java port of the icecream library for Python.

icecream-java is a Java port of the icecream library for Python.

Akshay Thakare 20 Apr 7, 2022
JPassport works like Java Native Access (JNA) but uses the Foreign Linker API instead of JNI. Similar to JNA, you declare a Java interface that is bound to the external C library using method names.

JPassport works like Java Native Access (JNA) but uses the Foreign Linker API instead of JNI. Similar to JNA, you declare a Java interface t

null 28 Dec 30, 2022