DigitalRuby / ExchangeSharp

ExchangeSharp is a powerful, fast and easy to use .NET/C# API for interfacing with many crypto currency exchanges. REST and web sockets are supported.
https://www.digitalruby.com
MIT License
744 stars 373 forks source link

Shorting #815

Open Retcorp opened 1 year ago

Retcorp commented 1 year ago

Hi folks,

Shorting. i.e. placing a sell of an asset that I don't own, but an exchange allows (they don't all allow it on all currency pairs) with some leverage in place. Can I do that? I'm looking at the Kraken API for example and it appears that an order placed with the correct selection of properties will allow a short sell, or a "short buy" when relinquishing the position. I wondered if there were an ExchangeSharp wrapper around that for some or all exchanges. Looking at the code, I don't think there is, but I just wanted to ask if there were any thoughts about it perhaps? (I'm guessing there has been thought maybe, but time or resource has not allowed it to be implemented?).

https://docs.kraken.com/rest/#tag/Trading/operation/addOrder

Would be happy to help if this were something we thought the project might benefit from?

Regards

Jon

vslee commented 1 year ago

I'm guessing there has been thought maybe, but time or resource has not allowed it to be implemented

👍

Would be happy to help if this were something we thought the project might benefit from?

Certainly. We would be happy to accept a pull request that implements this