Skip to content

place_order function has AttributeError: 'str' object has no attribute 'value' #55

@Mandal-21

Description

@Mandal-21

input is a string not dict/pydantic dataclass

def place_order(self, product_id, size, side, limit_price=None, time_in_force=None, order_type=OrderType.LIMIT, post_only='false', client_order_id = None, reduce_only='false'):
    order = {
      'product_id': product_id,
      'size': int(size),
      'side': side,
      'order_type': order_type, # previous order_type.value
      'post_only': post_only,
      'reduce_only': reduce_only
    }```

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