Skip to content
Open
Show file tree
Hide file tree
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: 2 additions & 2 deletions src/examples/orders/createOrder.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ const { API_URL, CONTRACT_HASH } = require('../../config')
const api = require('../../api')

function createOrder({ pair, blockchain, side, price,
wantAmount, useNativeTokens, orderType,
quantity, useNativeTokens, orderType,
privateKey, address }) {
const signableParams = { pair, blockchain, side, price, wantAmount,
const signableParams = { pair, blockchain, side, price, quantity,
useNativeTokens, orderType, timestamp: getTimestamp(),
contractHash: CONTRACT_HASH }

Expand Down
2 changes: 1 addition & 1 deletion src/examples/orders/exampleParams/exampleOrderParams.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = {
price: (0.0001).toFixed(8),
// if the side is 'buy', then this is the amount of SWTH you want
// if the side is 'sell' then this is the amount of NEO you want
wantAmount: toAssetAmount(200.5, 'SWTH'),
quantity: toAssetAmount(200.5, 'SWTH'),
useNativeTokens: true,
orderType: 'limit',
privateKey: user.privateKey
Expand Down