Bitcoin Forum
December 10, 2016, 04:44:08 PM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Crypto X Change: "payload invalid"  (Read 1251 times)
eldentyrell
Donator
Legendary
*
Offline Offline

Activity: 966


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

Posts: 1481388248

View Profile Personal Message (Offline)

Ignore
1481388248
Reply with quote  #2

1481388248
Report to moderator
1481388248
Hero Member
*
Offline Offline

Posts: 1481388248

View Profile Personal Message (Offline)

Ignore
1481388248
Reply with quote  #2

1481388248
Report to moderator
1481388248
Hero Member
*
Offline Offline

Posts: 1481388248

View Profile Personal Message (Offline)

Ignore
1481388248
Reply with quote  #2

1481388248
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1481388248
Hero Member
*
Offline Offline

Posts: 1481388248

View Profile Personal Message (Offline)

Ignore
1481388248
Reply with quote  #2

1481388248
Report to moderator
1481388248
Hero Member
*
Offline Offline

Posts: 1481388248

View Profile Personal Message (Offline)

Ignore
1481388248
Reply with quote  #2

1481388248
Report to moderator
Gareth Nelson
Hero Member
*****
Offline Offline

Activity: 722


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: 722


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



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



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
Donator
Legendary
*
Offline Offline

Activity: 966


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
Donator
Legendary
*
Offline Offline

Activity: 966


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
Donator
Legendary
*
Offline Offline

Activity: 966


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:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!