File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed
main/java/com/cryptomarket/params
test/java/com/cryptomarket/sdk Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 11package com .cryptomarket .params ;
22
3+ import com .squareup .moshi .Json ;
4+
35/** Time in force */
46public enum TimeInForce {
57 /** good till canceled */
@@ -9,12 +11,8 @@ public enum TimeInForce {
911 /** fill or kill */
1012 FOK ,
1113 /** day */
12- DAY {
13- @ Override
14- public String toString () {
15- return "Day" ;
16- }
17- },
14+ @ Json (name ="Day" )
15+ DAY ,
1816 /** good till date */
1917 GTD ,
2018}
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ public void testOrderFlow() throws CryptomarketSDKException {
6565 .symbol ("EOSETH" )
6666 .side (Side .SELL )
6767 .quantity ("0.01" )
68+ .timeInForce (TimeInForce .DAY )
6869 .orderType (OrderType .LIMIT )
6970 .price ("1000" ));
7071 Checker .checkOrder .accept (order );
@@ -105,4 +106,4 @@ public void testCreateOrderList() throws CryptomarketSDKException {
105106 null );
106107 orders .forEach (Checker .checkOrder );
107108 }
108- }
109+ }
You can’t perform that action at this time.
0 commit comments