Skip to content

Sometimes create order fails and it shows a “nvalid price” message. #191

@bingqichen

Description

@bingqichen

When an asset’s minimum tick size is set to 0.1c, trying to create a LMT order throws an error:
invalid price (0.001), min: 0.01 - max: 0.99

const order = await client.createOrder({ tokenID: 'xxx', price: 0.001, side: 'SELL', size: 1000 });
const result = await client.postOrders([
 { order, orderType: OrderType.GTD }
])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions