Coinio / Bittrex.Api.Client

A C# http client wrapper for the Bittrex cryptocurrency trading platform api
MIT License
13 stars 12 forks source link

How to make Market Buy/sell Api Request #3

Open shravanvinu opened 7 years ago

shravanvinu commented 7 years ago

I went through Bittrex Documentation too, but can only find Limt Buy/sell how to do Market Buy/Sell?? will be better if the feature is added in this wrapper.. Conditional buy/sell , stop order can also be implemented if the api supports it, there is very less documentation provided by bittrex, there support team dint replay too.. Can implement lot many features, if the proper API documentation is provided by them.. Guys Please share if any of you have more info on it..

Coinio commented 7 years ago

Hi,

I've no idea to be honest. I just wrote methods for each of the end points available in the Bittrex api documentation. I can't see any information in their documentation about market orders. :(

If you do find out. Let me know. :)

Thanks,

Jon.

On 17 September 2017 at 18:37, shravanvinu notifications@github.com wrote:

I went through Bittrex Documentation too, but can only find Limt Buy/sell how to do Market Buy/Sell?? will be better if the feature is added in this wrapper.. Conditional buy/sell , stop order can also be implemented if the api supports it, there is very less documentation provided by bittrex, there support team dint replay too.. Can implement lot many features, if the proper API documentation is provided by them.. Guys Please share if any of you have more info on it..

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Coinio/Bittrex.Api.Client/issues/3, or mute the thread https://github.com/notifications/unsubscribe-auth/AGcI8fUnMrQ_Ze_d8duvqsuAv171RqyDks5sjVjpgaJpZM4PaN9U .

shravanvinu commented 7 years ago

hi, i have submitted support ticket to bittrex regarding the same, let see when they reply back. i am sure its possible, i have seen cryptotrader.org supports those features for bittrex, not sure how they implemented it, there must be some more missing methods in the documentation.

Any ways, Nice Work , will contribute to this once i find more info on this.. :) Thanks

harry-sm commented 7 years ago

I know there is a version 2 of the API https://bittrex.com/Api/v2.0/pub/market/GetTicks?marketName=BTC-ETH&tickInterval=fiveMin

The response is in the following format.

interface Tick {
        O: number; // open
        H: number; // high
        L: number; // low
        C: number; // close
        V: number; // volume
        T: Date; // time
        BV: number; // bitcoin value
    }

As is relates to other order types outside the API capabilities, I believe you have to simulate it with your own code. So buy at market price, you would have to watch the market last price or latest BID price in the order book and execute your order at that price. Same thing for stop loss, trailing stop loss and so on.

shravanvinu commented 6 years ago

oh.. how did you come across v2 API? i thought V1.1 is the latest..!!

dint you got more documentation on that version?? please send the link where you are referring all this from..

harry-sm commented 6 years ago

@shravanvinu I looked through the node wrapper api code. There is also a web sockets / signalr api. https://github.com/dparlevliet/node.bittrex.api

More v2 endpoint have been found. https://github.com/dparlevliet/node.bittrex.api#supported-v2-api-methods