Bitcoin Forum
July 13, 2024, 12:13:43 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Economy / Service Discussion / n00by development question: "key amount should be a decimal string" on: June 28, 2014, 10:38:36 AM
I started writing for the Bitfinex api yesterday and I've been struggling quite hard with this.
I am using jndok's python implementation at http://jndok.net/bitfinexapi.html

I added my pyblic and secret keys and wrote this line of code at the end:

rep = place_order(0.001, 589.0, 'sell', 'limit', exchange='bitfinex')

And I thought that would do it but the reply I get 'Key amount should be a decimal string' and the order is not placed.
I also tried to print the reply code I get from the server and it is 400.

What does this mean?

Thankful for help!



I have python 2.7, Windows 8.
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!