pytenno.interface.profile

Module holding the Profile interface class.

class pytenno.interface.profile.Profile(backend: PyTennoBackend)[source]

Class for the profile backend.

async create_order(item_id: str, order_type: OrderType, platinum: int, quantity: int, visible: bool, subtype: Subtype, rank: Optional[int] = None) OrderCreated[source]

Creates an order, and returns the order object.

Parameters
  • item_id (str) – The ID of the item.

  • order_type (OrderType) – The type of order.

  • platinum (int) – The amount of platinum per item in the order.

  • quantity (int) – How many items to offer to buy / sell.

  • visible (bool) – Whether the order is visible to others.

  • subtype (Subtype) – The subtype of the item. Must be applicable to the item passed.

  • rank (Optional[int]) – The rank of the item. Unnecessary for anything which doesn’t have a rank.

Returns

The order object.

Return type

OrderCreated