Skip to content

Bybit spot (testnet) - Order price decimal too long. #13416

@szwagros

Description

@szwagros
  • OS: Linux
  • Programming Language version: php 8
  • CCXT version: 1.83.69
$e = new \ccxt\bybit([
'apiKey' => '',
'secret' =>'',
'timeout' => 30000,
'enableRateLimit' => true,
'options' => ['defaultType' => 'spot']]
);

$e->set_sandbox_mode(true);
$e->load_markets();

$e->create_order('BTC3S/USDT', 'limit', 'buy', 1.0, $e->price_to_precision('BTC3S/USDT',18.0331288));

ccxt\ExchangeError with message 'bybit {"ret_code":-1134,"ret_msg":"Order price decimal too long.","ext_code":null,"ext_info":null,"result":null}'

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions