Skip to content

Cannot unmarshal number into Go struct field CancelOrderByIdResponse.order-state of type string #51

Open
@gregzaitsev

Description

@gregzaitsev

Huobi response contains numeric order state in case of cancellation error, so this deserialization results in marshalling error:

result := order.CancelOrderByIdResponse{}
jsonErr := json.Unmarshal([]byte(postResp), &result)

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