Bitcoin Forum

Economy => Exchanges => Topic started by: vaddi on May 29, 2017, 04:27:12 AM



Title: How to place an ImmediateOrCancel-Order on Bitttrex via API?
Post by: vaddi on May 29, 2017, 04:27:12 AM
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 (https://www.versioneye.com/nodejs/node.bittrex.api/0.2.2))

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


Title: Re: How to place an ImmediateOrCancel-Order on Bitttrex via API?
Post by: vaddi on May 29, 2017, 05:28:45 PM
or does anybody know if there is a better documentation than that one (which seems to have some gaps):
https://bittrex.com/home/api (https://bittrex.com/home/api)


Title: Re: How to place an ImmediateOrCancel-Order on Bitttrex via API?
Post by: Razdraz on August 20, 2017, 07:01:53 AM
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?


Title: Re: How to place an ImmediateOrCancel-Order on Bitttrex via API?
Post by: vaddi on September 25, 2017, 06:41:22 PM
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.


Title: Re: How to place an ImmediateOrCancel-Order on Bitttrex via API?
Post by: Innovative Solutions on February 22, 2018, 08:19:05 PM
Hi,

Anyone got an answer from Bittrex on ImmediateOrCancel orders?


Daniel


Title: Re: How to place an ImmediateOrCancel-Order on Bitttrex via API?
Post by: Pospus on July 11, 2018, 08:29:28 AM
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?


Title: Re: How to place an ImmediateOrCancel-Order on Bitttrex via API?
Post by: vaddi on July 23, 2018, 01:38:24 PM
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