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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,11 @@
2
2
3
3
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
To test your integrations, Nash provides a public sandbox environment at https://app.sandbox.nash.io.
10
9
@@ -69,36 +68,34 @@ run()
69
68
70
69
## Nodejs usage
71
70
72
-
Using the client in node can be done like below. See also the [nodejs example](https://github.com/nash-io/api-client-typescript/tree/master/examples/nodejs).
71
+
Using the client in node can be done like below. See also the [nodejs example](https://github.com/nash-io/api-client-typescript/tree/master/examples/nodejs).
You may supply an optional affiliate label, which will be shown on the affiliate page. Label may only contain alpha numeric characters.
153
+
139
154
---
140
155
141
156
## Setting up API keys
@@ -154,21 +169,20 @@ Whitelisted addresses can be set up both before and after creating the API key.
154
169
155
170
## State signing
156
171
157
-
In order to assure your blockchain balances remain in sync with your trading balances, the client must 'sign' their state every so often before placing more orders. By default, the client will take care of this in the background for you and you will not need to worry about this.
172
+
In order to assure your blockchain balances remain in sync with your trading balances, the client must 'sign' their state every so often before placing more orders. By default, the client will take care of this in the background for you and you will not need to worry about this.
158
173
159
-
In special cases where a user has more than one client process running at once which is placing a high volume of orders, it is advisable to take a more custom approach. To turn of auto state syncing, initialize the client like so:
174
+
In special cases where a user has more than one client process running at once which is placing a high volume of orders, it is advisable to take a more custom approach. To turn of auto state syncing, initialize the client like so:
160
175
161
176
```
162
177
const nash = new Client(EnvironmentConfiguration.sandbox, {autoSignState: false})
163
178
```
164
179
165
-
You will then be responsible for signing states when necessary. The current restriction is that states must be signed every 100 open orders, so the client should keep track and make sure to sign state before this limit is reached, otherwise placing an order will raise an error.
180
+
You will then be responsible for signing states when necessary. The current restriction is that states must be signed every 100 open orders, so the client should keep track and make sure to sign state before this limit is reached, otherwise placing an order will raise an error.
166
181
167
-
This is done using the following call:
182
+
This is done using the following call:
168
183
169
184
```
170
185
const states = await client.getSignAndSyncStates()
171
186
```
172
187
173
188
If you are running a high volume of orders from different clients on the same account and having difficulty managing this process, please reach out to support and we will be glad to help with an optimal solution.
0 commit comments