Skip to content

Wrong serialization of TriggerBy enum #84

@wellfour

Description

@wellfour

The TriggerBy enum holds correct API values ("LastPrice", "MarkPrice", "IndexPrice"), but serialization currently uses name() (LAST_PRICE, MARK_PRICE, INDEX_PRICE).

Because of this, orders are created but triggerBy is ignored (e.g. TP/SL conditions are not applied correctly).

Expected: Serialize TriggerBy using the API value.
Fix: Override toString() to return trigger, or ensure DTOs use getTrigger() instead of name().

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