wisespace-io / binance-rs

Rust Library for the Binance API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stop limits on buy and sell

motters opened this issue · comments

Super cool crate, works perfectly.

However is is possible when summitting a buy or sell order to use a stop-limit?

I've take a quick look and can't see the feature in your library. Looking at Binance's api it does show it's possible.

If this features does not exist would it be best to expand on custom_order or create a new stop_loss_custom_order?

@motters Glad that the crate is useful to you. Regarding your question, Stop Loss is not supported in the crate yet.

You could try to extend custom_order, but I would just create a new method, stop_loss_custom_order.

@wisespace-io Alright sweet, I'll sort a pull request out once it's done.

@motters Please check the PR #83.

@wisespace-io Could you please close the issue?