knowm / XChange

XChange is a Java library providing a streamlined API for interacting with 60+ Bitcoin and Altcoin exchanges providing a consistent interface for trading and accessing market data.
http://knowm.org/open-source/xchange/
MIT License
3.84k stars 1.94k forks source link

Bitstamp limit order limit_price parameter #1988

Open priteshwatch opened 6 years ago

priteshwatch commented 6 years ago

Hello,

I might be mistaken here but the current implementation only support the price parameter of the call and does not have "limit_price" implemented. I that correct? Is there a way to support this?

POST | https://www.bitstamp.net/api/v2/buy/{currency_pair}/API v2 Request parameters key | API key. signature | Signature. nonce | Nonce. amount | Amount. price | Price. limit_price | If the order gets executed, a new sell order will be placed, with "limit_price" as its price. daily_order (Optional) | Opens buy limit order which will be canceled at 0:00 UTC unless it already has been executed. Possible value: True

priteshwatch commented 6 years ago

@timmolter I have the fix for this, but the standard interfaces dont really fit.. is there a suggested way to introduce this fix?

timmolter commented 6 years ago

This is a "stop-limit" order, right? Others are working on this: https://github.com/timmolter/XChange/pull/2062