Skip to content

Failed orders tell nothing in response #131

Description

@DoganM95

When a newly created market order is ot filled (e.g. according to app has status "Cancelled"), the response object is totally useless.
It does not tell what the issue was, why the order got cancelled by the system, nothing.

Instead, the response contains basic info like

(
    <lighter.transactions.create_order.CreateOrder object at 0x000001FFFFFFFFFF>, 
    RespSendTx(
    code=200, 
    message='{"ratelimit": "didn\'t use volume quota"}', 
    tx_hash='1234567890abcdefg1234567890abcdefg1234567890abcdefg1234567890abcdefg1234567890ab', 
    predicted_execution_time_ms=1773418001481, 
    volume_quota_remaining=None, additional_properties={}
  ), 
  None
)

So unless there is a parameter error (which the class tells you during development), when the order does not succeed, please implement information on why exactly it did not get filled but randomly cancelled, in the response object.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions