question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi 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:closed
  • Created 6 years ago
  • Comments:20 (17 by maintainers)

github_iconTop GitHub Comments

1reaction
KevinJanniscommented, Dec 20, 2017
0reactions
ZorgeRcommented, Jan 20, 2018

java.nio.file.Path exception on Binance library 4.3.2 (Android build)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found