API Bitfinex question: "key amount should be a decimal string"?
You are submitting a float value. Float values are not totaly accurate:

&gt;&gt;&gt; 0.9 
0.90000000000000002


Thats why the specification requires a Decimal datatype:

&gt;&gt;&gt; from decimal import Decimal
&gt;&gt;&gt; Decimal("0.001")