Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to make Market Buy/sell Api Request #3

Open
shravanvinu opened this issue Sep 17, 2017 · 5 comments
Open

How to make Market Buy/sell Api Request #3

shravanvinu opened this issue Sep 17, 2017 · 5 comments

Comments

@shravanvinu
Copy link

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
Copy link
Owner

Coinio commented Sep 17, 2017 via email

@shravanvinu
Copy link
Author

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
Copy link

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
Copy link
Author

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
Copy link

harry-sm commented Sep 19, 2017

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants