Bitcoin Forum

Economy => Trading Discussion => Topic started by: e2048 on September 02, 2022, 06:44:55 PM



Title: Futures trading software for api's?
Post by: e2048 on September 02, 2022, 06:44:55 PM
Dies anyone know where to find trading software that works with exchange api?
I tried googling without luck but maybe i don't know the right terminology.

What I want to do is for example put in a limit futures order to buy at 19500 with a stop loss at 19000, but I want to program it so if the price goes above 20500 it will automatically change my stop loss to 20000, to prevent loosing profits if the price goes down.
Is it possible to do this on any exchange?
I thought about making a small app to do it with api's but maybe it already exists.
Thanks in advance for any help.


Title: Re: Futures trading software for api's?
Post by: teosanru on September 02, 2022, 07:50:41 PM
Dies anyone know where to find trading software that works with exchange api?
I tried googling without luck but maybe i don't know the right terminology.

What I want to do is for example put in a limit futures order to buy at 19500 with a stop loss at 19000, but I want to program it so if the price goes above 20500 it will automatically change my stop loss to 20000, to prevent loosing profits if the price goes down.
Is it possible to do this on any exchange?
I thought about making a small app to do it with api's but maybe it already exists.
Thanks in advance for any help.
Basically, what you want is a trailing stop loss from what I can understand, this is possible in a few exchanges itself. As far as I know, Binance does provide this solution, you can put a trailing stop loss on Binance by setting the Gap price from the high of that very rally, which means if you put the order of 19500 and it is executed and you put a trailing stop loss of 5% so now if the price reaches 20500 your stop loss will get changed to somewhere around 19480. Similarly now if the price comes down for a bit and then again breaches 20k mark to reach 22k, your stop loss will now become around 21k. So this will be carried on until it drops 5% from the high of that rally. You can refer to this guide to understand the concept: https://www.binance.com/en/support/faq/339635f6260d43c5aefa4c3c921728ec


Title: Re: Futures trading software for api's?
Post by: logfiles on September 03, 2022, 10:34:08 AM
A trailing stop order!

It's future that is available in a number of exchanges I know like Bybit, Binance, Okx, phemex. You don't need a trading bot or trading terminal in order to achieve it. I advise you to read about this kind of order and how you can set it up depending on the exchange you are using.


Title: Re: Futures trading software for api's?
Post by: GreatArkansas on September 03, 2022, 10:49:18 AM
A trailing stop order!

It's future that is available in a number of exchanges I know like Bybit, Binance, Okx, phemex. You don't need a trading bot or trading terminal in order to achieve it. I advise you to read about this kind of order and how you can set it up depending on the exchange you are using.
But OP seems to build something using API, which seems a trading bot something that is created via some coding logic.

I found some articles about Binance's API:
https://dev.binance.vision/t/how-do-i-set-a-stop-loss-stop-loss-limit-trailing-stop-loss-or-take-profit-order-via-the-api/2612/2
https://dev.binance.vision/t/how-to-implement-otoco-tp-sl-orders-using-api/1622
https://github.com/binance/binance-spot-api-docs/blob/master/faqs/trailing-stop-faq.md
https://docs.ftx.com/#get-open-trigger-orders

Overall these kinds of functions will depend on Exchanges.
The articles above will help you to achieve those via API especially using top exchanges like Binance and FTX. This is very helpful, just check and read carefully their API documentation for this.


Title: Re: Futures trading software for api's?
Post by: e2048 on September 05, 2022, 07:04:53 PM
Thanks for the tip about trailing stop loss.
Unfortunately I can't use binance because they ask for ID documents.
I'm currently using kucoin, does any other exchange have this feature?
I have found many guides that say binance doesn't require kyc upto 2 btc but they ask me right away upon signup, is there a specific country they don't ask?


Title: Re: Futures trading software for api's?
Post by: Bitcoin_Arena on September 05, 2022, 11:38:58 PM
I have found many guides that say binance doesn't require kyc upto 2 btc but they ask me right away upon signup, is there a specific country they don't ask?
Those guides where there before Binance started implementing mandatory KYC verification upon sign up so it's not country specific. Try alternative exchanges like OKX. Last time i used it, their KYC verification was not yet that strict.