Bitcoin Forum
July 02, 2024, 07:07:51 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [Poloniex API] Possible to create or move stop limit via API?  (Read 1393 times)
Tuple (OP)
Jr. Member
*
Offline Offline

Activity: 34
Merit: 1


View Profile
April 03, 2017, 03:25:13 PM
 #1

Hi everyone.

Is it possible to create or move margin stop limit orders via the poloniex API? The documentation doesn't say anything about it.

Cheers
HI-TEC99
Legendary
*
Offline Offline

Activity: 2772
Merit: 2846



View Profile
April 03, 2017, 06:37:58 PM
 #2

There's API instructions and examples at this page. Scroll down to the section entitled marginBuy in the linked poloniex page, and you can find a way to place a margin buy order.

https://poloniex.com/support/api/

Quote
marginBuy

Places a margin buy order in a given market. Required POST parameters are "currencyPair", "rate", and "amount". You may optionally specify a maximum lending rate using the "lendingRate" parameter. If successful, the method will return the order number and any trades immediately resulting from your order. Sample output:

{"success":1,"message":"Margin order placed.","orderNumber":"154407998","resultingTrades":{"BTC_DASH":[{"amount":"1.00000000","date":"2015-05-10 22:47:05","rate":"0.01383692","total":"0.01383692","tradeID":"1213556","type":"buy"}]}}


The stop/limit order instructions are in this section of that page.

Quote
buy

Places a limit buy order in a given market. Required POST parameters are "currencyPair", "rate", and "amount". If successful, the method will return the order number. Sample output:

{"orderNumber":31226040,"resultingTrades":[{"amount":"338.8732","date":"2014-10-18 23:03:21","rate":"0.00000173","total":"0.00058625","tradeID":"16164","type":"buy"}]}

You may optionally set "fillOrKill", "immediateOrCancel", "postOnly" to 1. A fill-or-kill order will either fill in its entirety or be completely aborted. An immediate-or-cancel order can be partially or completely filled, but any portion of the order that cannot be filled immediately will be canceled rather than left on the order book. A post-only order will only be placed if no portion of it fills immediately; this guarantees you will never pay the taker fee on any part of the order that fills.
Tuple (OP)
Jr. Member
*
Offline Offline

Activity: 34
Merit: 1


View Profile
April 14, 2017, 07:31:45 PM
 #3

Hello,

the buy command doesn't let my place a stop limit order, thats just a regular order or am I wrong?

Greetings.
japh
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
July 19, 2017, 05:07:27 PM
 #4

I think you're correct, Tuple.

In fact, stop-limit orders don't even show up in the returnOpenOrders API call responses. Normal buy or sell orders do though.

Sad
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!