eldentyrell (OP)
Donator
Legendary
Offline
Activity: 980
Merit: 1004
felonious vagrancy, personified
|
|
January 01, 2012, 05:37:25 AM |
|
Per the documentation here, I am sending: POST https://cryptoxchange.com/api/v0/account/placebid/ amount=0.1&price=5.5&market=BTCUSD&stamp=1325395860020
I get back: { "oid":"0", "bids":[], "ReturnCodes":3, "err":"payload invalid ", "stamp":"" }
I know I'm computing the cryptokey/cryptopayload headers and "stamp" properly because I can check my balance via the API. The message "payload invalid" is pretty unhelpful. CryptoXChange, please give more helpful error messages. Curiously, if I omit any of the "amount", "price" or "market" fields it will complain that that field is missing instead of "payload invalid".
|
The printing press heralded the end of the Dark Ages and made the Enlightenment possible, but it took another three centuries before any country managed to put freedom of the press beyond the reach of legislators. So it may take a while before cryptocurrencies are free of the AML-NSA-KYC surveillance plague.
|
|
|
|
|
|
|
Bitcoin mining is now a specialized and very risky industry, just like gold mining. Amateur miners are unlikely to make much money, and may even lose money. Bitcoin is much more than just mining, though!
|
|
|
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
|
|
|
|
Gareth Nelson
|
|
January 01, 2012, 10:07:09 AM |
|
It's the order of parameters - it needs to be precisely the right order
|
|
|
|
Gareth Nelson
|
|
January 01, 2012, 10:08:05 AM |
|
Oh, that's assuming you did calculate the headers right of course - test with a balance query first.
|
|
|
|
shtylman
|
|
January 01, 2012, 05:02:12 PM |
|
The order of the POST parameters should not matter. Have you tried emailing their support and asking instead of just posting here?
|
|
|
|
terrytibbs
|
|
January 01, 2012, 05:09:41 PM |
|
It's the order of parameters - it needs to be precisely the right order
well that's stupid
|
|
|
|
eldentyrell (OP)
Donator
Legendary
Offline
Activity: 980
Merit: 1004
felonious vagrancy, personified
|
|
January 02, 2012, 08:00:03 PM |
|
It's the order of parameters - it needs to be precisely the right order
well that's stupid Yes, it is. I'm using Apache HttpClient, which doesn't let me change the order of the parameters (since their order isn't supposed to matter, I'm guessing it stores them internally in an unsorted data structure like a hash table). What am I supposed to do, roll my own HTTP implementation just so I can trade on CryptoXChange? Not likely.
|
The printing press heralded the end of the Dark Ages and made the Enlightenment possible, but it took another three centuries before any country managed to put freedom of the press beyond the reach of legislators. So it may take a while before cryptocurrencies are free of the AML-NSA-KYC surveillance plague.
|
|
|
eldentyrell (OP)
Donator
Legendary
Offline
Activity: 980
Merit: 1004
felonious vagrancy, personified
|
|
January 02, 2012, 08:01:51 PM |
|
Have you tried emailing their support and asking instead of just posting here?
Yes, often. I get much faster replies here.
|
The printing press heralded the end of the Dark Ages and made the Enlightenment possible, but it took another three centuries before any country managed to put freedom of the press beyond the reach of legislators. So it may take a while before cryptocurrencies are free of the AML-NSA-KYC surveillance plague.
|
|
|
eldentyrell (OP)
Donator
Legendary
Offline
Activity: 980
Merit: 1004
felonious vagrancy, personified
|
|
January 02, 2012, 08:55:55 PM |
|
Oh, that's assuming you did calculate the headers right of course - test with a balance query first.
As you can see in my original posting, I tested that.
|
The printing press heralded the end of the Dark Ages and made the Enlightenment possible, but it took another three centuries before any country managed to put freedom of the press beyond the reach of legislators. So it may take a while before cryptocurrencies are free of the AML-NSA-KYC surveillance plague.
|
|
|
|