You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Order order = client.createOrder(newParamsBuilder()
63
66
.symbol("EOSETH")
64
67
.side(Side.SELL)
65
68
.quantity("2")
66
-
.price("100000")
69
+
.price("10000")
67
70
.timeInForce(TimeInForce.DAY));
68
71
```
69
72
70
73
## Using the ParamsBuilder
71
74
72
-
most client methods have a version that accepts a ParamBuilder. This class makes easier to pass parameters.
75
+
most client methods have a version that accepts a ParamBuilder. This class makes easier to pass parameters, and is expected to recieve the same parameters as the parameterized version.
@@ -105,13 +117,17 @@ There are three websocket clients, the market data client, the spot trading clie
105
117
The market data client requires no authentication, while the spot trading client and the wallet client do require it.
106
118
107
119
All websocket methods accept a `BiConsumer` with the first argument being the resulting data of the request, and the second
108
-
argument a possible exception of type `CryptomarketSDKException`. If there is an exception the data is null: `(null, exception) -> {...}`.nd if
109
-
there is no exception, the exception argument is null: `(data,null) -> {...}`
120
+
argument a possible exception of type `CryptomarketSDKException`. If there is an exception the data is null: `(null, exception) -> {...}`. And if there is no exception, the exception argument is null: `(data,null) -> {...}`
110
121
111
122
websocket subscriptions take a second `BiConsumer` that takes the subscription data as the first argument, and the notification type as the second. The notification type is of type NotificationType, and is either SNAPSHOT, NOTIFICATION or DATA. there are functions to test the type of notification:
112
123
124
+
If there is an error in a notification of a subscription, a special notification type is used, to check it call `notificationType.isError()`, in such case, the data is null. This holds for all subscriptions
0 commit comments