@@ -553,7 +553,10 @@ public JSONArray ticker24h(JSONObject options) {
553553 * @param market The market for which the order should be created
554554 * @param side is this a buy or sell order
555555 * @param orderType is this a limit or market order
556- * @param body optional body parameters: limit:(amount, price, postOnly), market:(amount, amountQuote, disableMarketProtection), both: timeInForce, selfTradePrevention, responseRequired
556+ * @param body optional body parameters: limit:(amount, price, postOnly), market:(amount, amountQuote, disableMarketProtection)
557+ * stopLoss/takeProfit:(amount, amountQuote, disableMarketProtection, triggerType, triggerReference, triggerAmount)
558+ * stopLossLimit/takeProfitLimit:(amount, price, postOnly, triggerType, triggerReference, triggerAmount)
559+ * all orderTypes: timeInForce, selfTradePrevention, responseRequired
557560 * @return JSONObject response, get status of the order through response.getString("status")
558561 */
559562 public JSONObject placeOrder (String market , String side , String orderType , JSONObject body ) {
@@ -582,7 +585,8 @@ public JSONObject getOrder(String market, String orderId) {
582585 * @param market the market the order resides on
583586 * @param orderId the id of the order which should be updated
584587 * @param body optional body parameters: limit:(amount, amountRemaining, price, timeInForce, selfTradePrevention, postOnly)
585- * (set at least 1) (responseRequired can be set as well, but does not update anything)
588+ * untriggered stopLoss/takeProfit:(amount, amountQuote, disableMarketProtection, triggerType, triggerReference, triggerAmount)
589+ * stopLossLimit/takeProfitLimit: (amount, price, postOnly, triggerType, triggerReference, triggerAmount)
586590 * @return JSONObject response, get status of the order through response.getString("status")
587591 */
588592 public JSONObject updateOrder (String market , String orderId , JSONObject body ) {
@@ -649,6 +653,14 @@ public JSONArray trades(String market, JSONObject options) {
649653 return privateRequestArray ("/trades" , postfix , "GET" , new JSONObject ());
650654 }
651655
656+ /**
657+ * Return the fee tier for an account
658+ * @return JSONObject response, get taker fee through: response.getJSONObject("fees").getString("taker")
659+ */
660+ public JSONObject account () {
661+ return privateRequest ("/account" , "" , "GET" , new JSONObject ());
662+ }
663+
652664 /**
653665 * Returns the balance for an account
654666 * @param options optional parameters: symbol
@@ -908,7 +920,10 @@ public void tickerBook(JSONObject options, WebsocketClientEndpoint.MessageHandle
908920 * @param market market on which the order should be created
909921 * @param side is this a sell or buy order
910922 * @param orderType is this a limit or market order
911- * @param body optional body parameters: limit:(amount, price, postOnly), market:(amount, amountQuote, disableMarketProtection), both: timeInForce, selfTradePrevention, responseRequired
923+ * @param body optional body parameters: limit:(amount, price, postOnly), market:(amount, amountQuote, disableMarketProtection)
924+ * stopLoss/takeProfit:(amount, amountQuote, disableMarketProtection, triggerType, triggerReference, triggerAmount)
925+ * stopLossLimit/takeProfitLimit:(amount, price, postOnly, triggerType, triggerReference, triggerAmount)
926+ * all orderTypes: timeInForce, selfTradePrevention, responseRequired
912927 * @param msgHandler callback
913928 * @return JSONObject response, get order object through response.getJSONObject("response")
914929 */
@@ -944,7 +959,8 @@ public void getOrder(String market, String orderId, WebsocketClientEndpoint.Mess
944959 * @param market market on which the order should be updated
945960 * @param orderId the order which should be updated
946961 * @param body optional body parameters: limit:(amount, amountRemaining, price, timeInForce, selfTradePrevention, postOnly)
947- * (set at least 1) (responseRequired can be set as well, but does not update anything)
962+ * untriggered stopLoss/takeProfit:(amount, amountQuote, disableMarketProtection, triggerType, triggerReference, triggerAmount)
963+ * stopLossLimit/takeProfitLimit: (amount, price, postOnly, triggerType, triggerReference, triggerAmount)
948964 * @param msgHandler callback
949965 * @return JSONObject response, get order object through response.getJSONObject("response")
950966 */
@@ -1029,6 +1045,18 @@ public void trades(String market, JSONObject options, WebsocketClientEndpoint.Me
10291045 doSendPrivate (options );
10301046 }
10311047
1048+ /**
1049+ * Returns the fee tier for an account
1050+ *
1051+ * @param msgHandler callback
1052+ * @return JSONObject response, get taker fee through response.getJSONObject("response").getJSONObject("fees").getString("taker")
1053+ */
1054+ public void account (WebsocketClientEndpoint .MessageHandler msgHandler ) {
1055+ ws .addAccountHandler (msgHandler );
1056+ JSONObject options = new JSONObject ("{ action: privateGetAccount }" );
1057+ doSendPrivate (options );
1058+ }
1059+
10321060 /**
10331061 * Returns the balance for an account
10341062 *
0 commit comments