Skip to content

facorazza/binance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Binance API

This is still a work in progress, but you are welcome to contribute

TODO:

  • Withdrawal API
  • Websocket streams

Installation

nimble install binance

Setup

Open a Binance account and create an API key.
Create two directories called logs and keys in the same directory where you'll be executing the program from. Inside keys create two files called api.key and secret.key. Save your generated API key in the former and you secret key in the latter.

Example

import binance

const apiKey = slurp("./keys/api.key")
const secretKey = slurp("./keys/secret.key")
let b = newBinanceApi(apiKey, secretKey)


if b.ping():
  echo "The server is online."
else:
  echo "The server is offline."

Contributing

Please, do!

About

A nim library to access the Binance API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages