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.

binance STOP_LOSS_LIMIT / STOP_LOSS throws ExchangeNotAvailable

See original GitHub issue

when you try to make order on binance with ‘STOP_LOSS_LIMIT’ OR ‘STOP_LOSS’ it gives you this error back:

timestamp=1515116484446&symbol=SUBBTC&quantity=10&type=STOP_LOSS_LIMIT&side=SELL&price=0.00019000&timeInForce=GTC&stopPrice=0.0001900&recvWindow=10000000&signature=3a…

PHP Fatal error: Uncaught ccxt\ExchangeNotAvailable: binance POST https://api.binance.com/api/v3/order 400 not accessible from this location at the moment in /home/work/wildcard/crypto.lab/ccxt/php/Exchange.php:665

  • OS: Linux/PHP
  • Programming Language:PHP
  • CCXT version: Version 1.10.1 2017-11-06
  • Exchange: binance
  • Method:
↑↑↑ DO_NOT_DELETE_THE_BACKTICKS_AROUND_THE_CODE

MUST_READ_THIS https://github.com/kroitor/ccxt/wiki/Manual#troubleshooting

REPLACE_WITH_YOUR_CODE_TO_REPRODUCE_THE_BUG_HERE

example 1: ccxt.poloniex ({'verbose': True}).fetchTicker ('ETH/BTC')

example 2: exchange = ccxt.bittrex ()
           exchange.verbose = True
           exchange.fetchOrderBook ('ETH/BTC')

REPLACE_WITH_YOUR_VERBOSE_OUTPUT_HERE

↓↓↓ DO_NOT_DELETE_THE_BACKTICKS_AROUND_THE_CODE

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
frosty00commented, Jun 30, 2019

@kroitor pls close

1reaction
phrazercommented, Jan 28, 2018

ofcourse…

is this enough?

  //$sell = array('type' => 'STOP_LOSS_LIMIT', 'stopPrice' => '0.0001900');
  //$binance->create_order('SUB/BTC', 'limit', 'sell', 10, 0.0001900, $sell);

this twostrangly work:

  //$buy = array('type' => 'TAKE_PROFIT_LIMIT', 'stopPrice' => '0.0000900');
  //$binance->create_order('SUB/BTC', 'limit', 'buy', 20, 0.0000800, $buy);
    
  //$sell = array('type' => 'TAKE_PROFIT_LIMIT', 'stopPrice' => '0.0001900');
  //$binance->create_order('SUB/BTC', 'limit', 'sell', 10, 0.0001890, $sell);

dont know if its temp binance thing, or something else?

Read more comments on GitHub >

github_iconTop Results From Across the Web

What Is a Stop-Limit Order? | Binance Academy
TL;DR. A stop-limit order combines a stop trigger and a limit order. Stop-limit orders allow traders to set the minimum amount of profit ......
Read more >
How to create a Stop-Loss Order on Binance? #3139 - GitHub
I'm stuck with Binance, it throws me an error: ccxt.base.errors.ExchangeError: binance {"code":-1104,"msg":"Not all sent parameters were read; ...
Read more >
Exchanges — ccxt 2.4.71 documentation
ExchangeNotAvailable ¶. This type of exception is thrown when the underlying exchange is unreachable. The ccxt library also throws this error if it...
Read more >
Binance stop Loss Nasıl Konur
Binance stop loss kullanımı için ilk olarak aşağıdaki görselde ... binance STOP LOSS LIMIT STOP LOSS throws ExchangeNotAvailable Jan 5, ...
Read more >
Unable to set the STOP-LOSS limit order using Binance ...
there is no price in your limit order api post.
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