Bitcoin Forum
April 24, 2024, 04:55:56 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Crypto X Change: "payload invalid"  (Read 1401 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.
1713934556
Hero Member
*
Offline Offline

Posts: 1713934556

View Profile Personal Message (Offline)

Ignore
1713934556
Reply with quote  #2

1713934556
Report to moderator
1713934556
Hero Member
*
Offline Offline

Posts: 1713934556

View Profile Personal Message (Offline)

Ignore
1713934556
Reply with quote  #2

1713934556
Report to moderator
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.
1713934556
Hero Member
*
Offline Offline

Posts: 1713934556

View Profile Personal Message (Offline)

Ignore
1713934556
Reply with quote  #2

1713934556
Report to moderator
1713934556
Hero Member
*
Offline Offline

Posts: 1713934556

View Profile Personal Message (Offline)

Ignore
1713934556
Reply with quote  #2

1713934556
Report to moderator
1713934556
Hero Member
*
Offline Offline

Posts: 1713934556

View Profile Personal Message (Offline)

Ignore
1713934556
Reply with quote  #2

1713934556
Report to moderator
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!