tbapi.api.enums.order_action

 1from enum import Enum
 2from Tickblaze.Scripts.Api.Enums import OrderAction as _OrderAction
 3
 4class OrderAction(Enum):
 5    """Specifies the action of an order."""
 6
 7    Buy = 0
 8    """Buy order action."""
 9
10    Sell = 1
11    """Sell order action."""
12
13    SellShort = 2
14    """Sell short order action."""
15
16    BuyToCover = 3
17    """Buy to cover order action."""
class OrderAction(enum.Enum):
 7class OrderAction(Enum):
 8    """Specifies the action of an order."""
 9
10    Buy = 0
11    """Buy order action."""
12
13    Sell = 1
14    """Sell order action."""
15
16    SellShort = 2
17    """Sell short order action."""
18
19    BuyToCover = 3
20    """Buy to cover order action."""

Specifies the action of an order.

Buy = <OrderAction.Buy: 0>

Buy order action.

Sell = <OrderAction.Sell: 1>

Sell order action.

SellShort = <OrderAction.SellShort: 2>

Sell short order action.

BuyToCover = <OrderAction.BuyToCover: 3>

Buy to cover order action.