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

Invalid Order Signature #54

Open
DmitryMihaylov opened this issue Nov 14, 2018 · 0 comments
Open

Invalid Order Signature #54

DmitryMihaylov opened this issue Nov 14, 2018 · 0 comments

Comments

@DmitryMihaylov
Copy link

I send this object to your API
{ method: 'POST',
url: 'https://api.idex.market/order',
json:
{ tokenBuy: '0xCdCFc0f66c522Fd086A1b725ea3c0Eeb9F9e8814',
amountBuy: '800000000000000000000',
tokenSell: '0x0000000000000000000000000000000000000000',
amountSell: '150000000000000000',
address: '0x8aFa6c139bf20a67B0fb716Df2113A41B13DF575',
nonce: 3,
expires: 1542202760165,
v: 27,
r: '0xbca1ee19d47d78bed7be14ae0484208065f7b227bd361d8eebabbfdd089a8c31',
s: '0x1b9bc8b5cb0d152cd93c13586ddea82e27452e5a08e4b91951d4e405a4577132' } }

This is Server Answer
{ error: 'Invalid order signature. Please try again.' }

Some orders from the same program sends succesful

{ method: 'POST',
url: 'https://api.idex.market/order',
json:
{ tokenBuy: '0x0D8775F648430679A709E98d2b0Cb6250d2887EF',
amountBuy: '348600000000000000000',
tokenSell: '0x0000000000000000000000000000000000000000',
amountSell: '150000000000000000',
address: '0x8aFa6c139bf20a67B0fb716Df2113A41B13DF575',
nonce: 1,
expires: 1542201756302,
v: 28,
r: '0x7c14b1e553acd6fe5504aed96603796c92de2d07c1cec8dacf387e7550066f89',
s: '0x5ab390de65ed3daddba213f83f497f83d18e0f632d2b2b70dbb83c704a6a9e99' } }
IT is answer:
{ orderNumber: 176110836,
orderHash: '0xb377a2a76de60b888ee8849842e77b5674a8c90f1c5d52447ecefe50424e54ee',
timestamp: 1542201761,
price: '0.000430292598967298',
amount: '348.6',
total: '0.15',
type: 'buy',
params:
{ tokenBuy: '0x0d8775f648430679a709e98d2b0cb6250d2887ef',
buyPrecision: 18,
amountBuy: '348600000000000000000',
tokenSell: '0x0000000000000000000000000000000000000000',
sellPrecision: 18,
amountSell: '150000000000000000',
expires: 1542201756302,
nonce: 1,
user: '0x8afa6c139bf20a67b0fb716df2113a41b13df575' } }

Whats wrong I do? Sing code is from your example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant