Skip to main content
All CollectionsTrading Errors & Troubleshooting
Why do I see 'Error with order through API' when using TradingView?
Why do I see 'Error with order through API' when using TradingView?

Discover why you get the error 'Error with order through API' when using TradingView Alerts' and how to fix it.

Pete Darby avatar
Written by Pete Darby
Updated over 7 months ago

The 'Error with order through API' when using TradingView Alerts can occur in two ways in your trading bot.

  • It could be that you have set up a TradingView Alert, for example, when BTC is your quote currency. In this case, the trading bot cannot sell BTC because there is no open position of BTC.

  • It could also be that you receive a BTC sell order via a TradingView Alert on your trading bot when you are using a different quote currency, such as USDT, but do not have any open positions of BTC. In this case, there is nothing to sell.

In both cases, the error message in your trading bot output will appear as follows:

05/23/2024 12:26:12 PM INFO Received TradingView alert, forwarding SELL order for BTC to API.

05/23/2024 12:26:12 PM ERROR Error with order through API. App name: TradingView. Error: No open positions for coin: BTC. Nothing to do.

Did this answer your question?