Bitcoin Forum
December 15, 2018, 08:34:33 AM *
News: Latest Bitcoin Core release: 0.17.0 [Torrent].
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to place an ImmediateOrCancel-Order on Bitttrex via API?  (Read 876 times)
vaddi
Newbie
*
Offline Offline

Activity: 42
Merit: 0


View Profile
May 29, 2017, 04:27:12 AM
 #1

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.
1544862873
Hero Member
*
Offline Offline

Posts: 1544862873

View Profile Personal Message (Offline)

Ignore
1544862873
Reply with quote  #2

1544862873
Report to moderator
The grue lurks in the darkest places of the earth. Its favorite diet is adventurers, but its insatiable appetite is tempered by its fear of light. No grue has ever been seen by the light of day, and few have survived its fearsome jaws to tell the tale.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1544862873
Hero Member
*
Offline Offline

Posts: 1544862873

View Profile Personal Message (Offline)

Ignore
1544862873
Reply with quote  #2

1544862873
Report to moderator
vaddi
Newbie
*
Offline Offline

Activity: 42
Merit: 0


View Profile
May 29, 2017, 05:28:45 PM
 #2

or does anybody know if there is a better documentation than that one (which seems to have some gaps):
https://bittrex.com/home/api
Razdraz
Newbie
*
Offline Offline

Activity: 25
Merit: 0


View Profile
August 20, 2017, 07:01:53 AM
 #3

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?
vaddi
Newbie
*
Offline Offline

Activity: 42
Merit: 0


View Profile
September 25, 2017, 06:41:22 PM
 #4

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.
Innovative Solutions
Member
**
Offline Offline

Activity: 115
Merit: 10


View Profile WWW
February 22, 2018, 08:19:05 PM
 #5

Hi,

Anyone got an answer from Bittrex on ImmediateOrCancel orders?


Daniel

BetterHash - The beginners’ mining tool - https://www.betterhash.net
Pospus
Newbie
*
Offline Offline

Activity: 26
Merit: 0


View Profile
July 11, 2018, 08:29:28 AM
 #6

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?
vaddi
Newbie
*
Offline Offline

Activity: 42
Merit: 0


View Profile
July 23, 2018, 01:38:24 PM
 #7

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
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!