Bitcoin Forum
November 17, 2024, 12:01:24 AM *
News: Check out the artwork 1Dq created to commemorate this forum's 15th anniversary
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Crypto X Change: "payload invalid"  (Read 1419 times)
eldentyrell (OP)
Donator
Legendary
*
Offline Offline

Activity: 980
Merit: 1004


felonious vagrancy, personified


View Profile WWW
January 01, 2012, 05:37:25 AM
 #1

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.
Gareth Nelson
Hero Member
*****
Offline Offline

Activity: 721
Merit: 503


View Profile
January 01, 2012, 10:07:09 AM
 #2

It's the order of parameters - it needs to be precisely the right order
Gareth Nelson
Hero Member
*****
Offline Offline

Activity: 721
Merit: 503


View Profile
January 01, 2012, 10:08:05 AM
 #3

Oh, that's assuming you did calculate the headers right of course - test with a balance query first.
shtylman
Sr. Member
****
Offline Offline

Activity: 243
Merit: 250



View Profile
January 01, 2012, 05:02:12 PM
 #4

The order of the POST parameters should not matter. Have you tried emailing their support and asking instead of just posting here?
terrytibbs
Hero Member
*****
Offline Offline

Activity: 560
Merit: 501



View Profile
January 01, 2012, 05:09:41 PM
 #5

It's the order of parameters - it needs to be precisely the right order
well that's stupid
eldentyrell (OP)
Donator
Legendary
*
Offline Offline

Activity: 980
Merit: 1004


felonious vagrancy, personified


View Profile WWW
January 02, 2012, 08:00:03 PM
 #6

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 Offline

Activity: 980
Merit: 1004


felonious vagrancy, personified


View Profile WWW
January 02, 2012, 08:01:51 PM
 #7

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 Offline

Activity: 980
Merit: 1004


felonious vagrancy, personified


View Profile WWW
January 02, 2012, 08:55:55 PM
 #8

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.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!