Skip to content
This repository was archived by the owner on Mar 9, 2026. It is now read-only.
This repository was archived by the owner on Mar 9, 2026. It is now read-only.

decimal string #2

Description

@mmmmkkkk311

It works with this format
$buy = $bfx->new_order('BTCUSD', 0.01 , 1.0, 'bitfinex', 'buy', 'exchange market');

but it doesn't work with this
$x = 0.01 ;
$buy = $bfx->new_order('BTCUSD', $x , 1.0, 'bitfinex', 'buy', 'exchange market');
returning error
Array ( [message] => Key amount should be a decimal string. [error] => 1 )
how can I fix it?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions