wisespace-io / binance-rs

Rust Library for the Binance API
Other
649 stars 295 forks source link

Stop limits on buy and sell #64

Closed motters closed 3 years ago

motters commented 3 years ago

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?

wisespace-io commented 3 years ago

@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.

motters commented 3 years ago

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

ppamorim commented 3 years ago

@motters Please check the PR #83.

ppamorim commented 3 years ago

@wisespace-io Could you please close the issue?