A functional Binance API built on Scala language.
Binance offers access to Spot, Margin, Futures and Options API trading for over 300 Digital and Fiat currencies. API trading provides a testing environment, API documentation, and Sample Code in 6 languages. Suitable for HFT, Social Trader and Strategy trader.
Link: Binance API Doc
Binance offers several Postman Collections and Environments (JSON files) for a quicker and easier usage of our RESTful APIs. See documentation: Binance API Postman (Doc)
binance.credential.access.key = ${?BINANCE_CREDENTIAL_ACCESS_KEY}
binance.credential.secret.key = ${?BINANCE_CREDENTIAL_SECRET_KEY}
binance.api.mode = ${?BINANCE_API_MODE}
package dev.rafafrdz.binance.examples
import dev.rafafrdz.binance._
import dev.rafafrdz.binance.api.options._
import dev.rafafrdz.binance.api.reqest.get._
import dev.rafafrdz.binance.core.session._
import requests.Response
object BinanceAppEx {
/** BinanceContext */
val bcntx: BinanceContext =
BinanceContext
.build()
.from("config/application.conf")
.create()
/** BinanceQuery */
val query: BinanceQuery =
QueryRequest
.build()
.timestamp()
.signature
/** BinanceRequest */
val request: BinanceRequest =
depositHistory(query)
/** Response */
val response: Option[Response] =
request(bcntx)
}
You could find more examples in the example folder.
Link. [Repo] Binance Folder Examples
Link. [Repo] Binance App Example
Link. [Repo] Binance Context Example