Simple Algorithm in Python
New here? Learn about Bountify and follow @bountify to get notified of new bounties! x

Total noob with python, here. I’m trying to learn enough to eventually be able to plug some algorithms into Kraken’s API via Trality. I figure - in the mean time some concrete examples might help me make some progress towards that end. So I’ll probably need some more help in the near future, but I figure here’s a decent enough place to start. How would I code the following simple buy/sell strategy?

https://docs.trality.com/

BTCETH 1 minute interval

Market Sell Order for available BTC balance * A @ 5x leverage @ current price * B

Stop Loss @ current price * C

Market Buy BTC Order with available ETH balance * D @ 5x leverage @ current price * E

If sell order triggers, cancel all other open orders and restart algorithm

If buy order triggers, cancel all other open orders and restart algorithm

4 months ago

Crowdsource coding tasks.

0 Solutions