Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.

Add notes regarding parameters format to trade and order endpoints #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ Places a limit order on IDEX. The JSON object passed as input to this API call m
* r - ...
* s - (v r and s are the values produced by your private key signature, see above for details)

Example request body:
Example request body (Note that both `amountBuy` and `amountSell` fields should be converted to string):

```js
{
Expand Down Expand Up @@ -489,6 +489,8 @@ Apply the salt and hash the result as usual, then sign your salted hash.

NOTE: Currently, all orders being filled in a trade must be for the same tokenBuy/tokenSell pair, and must all be signed from the same address

Make sure to convert `amount` field to string when sending it with JSON payload.

Sample output:

```js
Expand Down