Author

Topic: How to place an ImmediateOrCancel-Order on Bitttrex via API? (Read 957 times)

newbie
Activity: 43
Merit: 0
Hi,

meanwhile i got the following answer from their support. Didn't try it out yet, because i am focussing on other exchanges now. If you tried it or have found another solution, i would be thankful for a comment.


Quote
Hi,

The v1.1 API currently does not have the ability to place time in effect orders. There is an unsupported 2.0 API that has this feature. Please be aware that this was not intended for public use at the time it was built. This means you will be using these endpoints at your own risk.

Below is an example buy with a time in effect IOC order. I have also included a call to the sell endpoint.

OrderType

LIMIT

TimeInEffect

GOOD_TIL_CANCELLED,
IMMEDIATE_OR_CANCEL,
FILL_OR_KILL

https://bittrex.com/api/v2.0/key/market/tradesell?marketname=BTC-LTC&ordertype=XXXX&quantity=1&rate=.00000012&timeInEffect=IOC&conditiontype=xxx&target=xxxx

https://bittrex.com/api/v2.0/key/market/TradeBuy?marketName=BTC-LTC&orderType=LIMIT&quantity=5000&rate=.00000012&timeInEffect=GOOD_TIL_CANCELLED&conditionType=NONE&target=0

Best Regards,

***** @ Bittrex
Follow us on Twitter @ https://twitter.com/BittrexExchange
newbie
Activity: 27
Merit: 0
Hi,
no, i have no solution so far. Still waiting for a response by Bittrex to my support ticket. If anyboy has a solution, i would be thankful.
Hi Had you got an answer from them?
member
Activity: 109
Merit: 10
Hi,

Anyone got an answer from Bittrex on ImmediateOrCancel orders?


Daniel
newbie
Activity: 43
Merit: 0
Hi,
no, i have no solution so far. Still waiting for a response by Bittrex to my support ticket. If anyboy has a solution, i would be thankful.
newbie
Activity: 25
Merit: 0
Did you get any solution to that? I tried the same, setting 'ImmediateOrCancel':true but without success. Open order says it is false. Wonder if this is possible though...any suggestions?
newbie
Activity: 43
Merit: 0
or does anybody know if there is a better documentation than that one (which seems to have some gaps):
https://bittrex.com/home/api
newbie
Activity: 43
Merit: 0
Hi,

does anybody know how to do it?

i tried the following, but the order didn't get cancelled:

Code:
var options = {market: "BTC-UBQ", quantity: 5, rate: 0.000298295, ImmediateOrCancel: true};
bittrex.buylimit(options, function(err, response){
  if(err) console.log(err)
  console.log(response)
});

I am using node.bittrex.api (https://www.versioneye.com/nodejs/node.bittrex.api/0.2.2)

I hope it is possible somehow, otherwise the API is pretty useless.
Jump to: