Binance Example
See original GitHub issueHi folks,
I was able to add xchange-binance
to my project, however I am having trouble initializing the exchange. I don’t see an example in the examples/
and have tried two different methods:
//BINANCE
public static Exchange createBinanceExchange(){
ExchangeSpecification exSpec = new BinanceExchange().getDefaultExchangeSpecification();
exSpec.setUserName("myemail@gmail.com");
exSpec.setApiKey("API_KEY_HERE");
exSpec.setSecretKey("SECRET+HERE");
return ExchangeFactory.INSTANCE.createExchange(exSpec);
}
public static Exchange createBinanceExchange2() {
Exchange bfx = ExchangeFactory.INSTANCE.createExchange(BinanceExchange.class.getName());
ExchangeSpecification bfxSpec = bfx.getDefaultExchangeSpecification();
bfxSpec.setApiKey("API_KEY+HERE");
bfxSpec.setSecretKey("SECRET+HERE");
bfx.applySpecification(bfxSpec);
return bfx;
}
Anybody have a Binance example they’d be willing to share? thanks!
Issue Analytics
- State:
- Created 6 years ago
- Comments:20 (17 by maintainers)
Top Results From Across the Web
binance examples - CodeSandbox
Learn how to use binance by viewing and forking example apps that make use of binance on CodeSandbox. TriangularArbitrageMonitor multiple currencies in a ......
Read more >Binance Beginners Guide
Welcome to Binance.com - the world's leading crypto exchange. Let's get started in 5 quick and easy steps: Step 1: Register Account Step...
Read more >Binance Exchange - Investopedia
The Binance Exchange is a leading cryptocurrency exchange founded in 2017 in Hong Kong. It features a strong focus on altcoin trading.
Read more >Welcome to python-binance v1.0.16 — python-binance 0.2.0 ...
This is an unofficial Python wrapper for the Binance exchange REST API v3. ... See examples in the Async section below or view...
Read more >binance-signature-examples - GitHub
Contribute to binance-exchange/binance-signature-examples development by creating an account on GitHub.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@cymp, As requested: https://github.com/timmolter/XChange/pull/2009
java.nio.file.Path exception on Binance library 4.3.2 (Android build)