Skip to content

Lighter order param bug #28115

Description

@DoganM95

Operating System

No response

Programming Language

Javascript

CCXT Version

4.5.42

Description

I just tried creating an order, but the parameter requirements do not match the documentation.

I submitted an order like this:

const orderResponse = await lighterCcxt.createOrder("ETH/USDC:USDC", "market", "buy", 0.0001);

Got the following error:

name ='ArgumentsRequired'
message ='lighter createOrder() requires a price argument'

And found the contradicting documentation:

Param Type Required Description
price float No the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders

https://github.com/ccxt/ccxt/blob/master/wiki/exchanges/lighter.md#createorder

I dont get why price is needed for a market order, that should be filled at the current price anyway, but that's a different story :)

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions