mwerner / bittrex

Unofficial gem for the Bittrex API
MIT License
53 stars 85 forks source link

Buy and Sell Functionality #17

Open jfeust opened 6 years ago

jfeust commented 6 years ago

Am I missing something or does this lack the ability to place buy and sell orders?

poppinyunhai commented 6 years ago

@jfeust I encountered the same problem

masudhossain commented 6 years ago

You can use the rest api to make calls to the server, can't you? Just use a traditional POST command from your rails controller or button.

nwochaadim commented 6 years ago

Only the v2.0 bittrex api gives the full buy/sell functionality. The v1.1 only allows buylimit and selllimit. I am willing to open a PR for this.

jesseproudman commented 6 years ago

I need this functionality myself. Is any one working on it? Otherwise I may give it a go.

jesseproudman commented 6 years ago

@nwochaadim Just saw the work you've done on your branch. Looks solid - will give it a go.

prutheus commented 6 years ago

Hello. I wanted to use buylimit/sellimit. But I focused an error maybe.

After I created a Bittrex::Client with key and secret, I want to do:

c.get('market/buylimit', {market:'USDT-BTC', quantity:0.0001, rate:17000})

But it only results in nil, why?

indokathan commented 6 years ago

@Prutheus Having the same issue. Have you found a solution?

arunsatyarth commented 6 years ago

@jesseproudman I think it should be a post call.

andersonar2004 commented 6 years ago

Somebody found a solution? I have the same issue

aaronmarks commented 6 years ago

Also interested in whether anyone figured this out. @arunsatyarth how do you do a post call? I only see get in the client class. And the bittrex documentation says all calls are gets.

tarraschk commented 6 years ago

Hi, it is definitely a get request.

I had issues using this gem, so I built mine: https://github.com/tarraschk/bittrex_ruby

You can check out the code if you want to implement it in this repo.