pytenno.models.auctions

class pytenno.models.auctions.AuctionEntry(*, id: str, minimal_reputation: int, winner: Optional[str] = None, private: bool, visible: bool, note_raw: str, note: str, owner: str, starting_price: int, buyout_price: Optional[int] = None, minimal_increment: Optional[int] = None, is_direct_sell: bool, top_bid: Optional[int] = None, created: datetime, updated: datetime, platform: Platform, closed: bool, is_marked_for: Optional[AuctionMarking] = None, marked_operation_for: Optional[datetime] = None, item: Union[RivenAuction, LichAuction, KubrowAuction])[source]

Represents an auction entry.

buyout_price: int | None = None

The buyout price of the auction, if any.

closed: bool

Whether the auction is closed or not.

created: datetime

The date and time the auction was created.

id: str

The ID of the auction entry.

is_direct_sell: bool

Whether the auction is a direct sell or not.

is_marked_for: pytenno.models.enums.AuctionMarking | None = None

Whether the auction is marked for a specific action.

item: Union[RivenAuction, LichAuction, KubrowAuction]

The item of the auction.

marked_operation_for: datetime.datetime | None = None

The time when the auction was marked for a specific operation.

minimal_increment: int | None = None

The minimal increment for bids, if any.

minimal_reputation: int

The minimal reputation required to bid on the auction.

note: str

The note of the auction entry.

note_raw: str

The raw note of the auction.

owner: str

The ID of the owner of the auction.

platform: Platform

The platform the auction is on.

private: bool

Whether the auction is private or not.

starting_price: int

The starting price of the auction.

top_bid: int | None = None

The highest bid on the auction, if any.

updated: datetime

The date and time the auction entry was created.

visible: bool

Whether the auction is visible or not.

winner: str | None = None

The ID of the winner of the auction, if any.

class pytenno.models.auctions.AuctionEntryExpanded(owner: UserShort, *, id: str, minimal_reputation: int, winner: Optional[str] = None, private: bool, visible: bool, note_raw: str, note: str, starting_price: int, buyout_price: Optional[int] = None, minimal_increment: Optional[int] = None, is_direct_sell: bool, top_bid: Optional[int] = None, created: datetime, updated: datetime, platform: Platform, closed: bool, is_marked_for: Optional[AuctionMarking] = None, marked_operation_for: Optional[datetime] = None, item: Union[RivenAuction, LichAuction, KubrowAuction])[source]

Same as AuctionEntry, but with a full user model for .owner

buyout_price: int | None = None

The buyout price of the auction, if any.

closed: bool

Whether the auction is closed or not.

created: datetime

The date and time the auction was created.

id: str

The ID of the auction entry.

is_direct_sell: bool

Whether the auction is a direct sell or not.

is_marked_for: pytenno.models.enums.AuctionMarking | None = None

Whether the auction is marked for a specific action.

item: Union[RivenAuction, LichAuction, KubrowAuction]

The item of the auction.

marked_operation_for: datetime.datetime | None = None

The time when the auction was marked for a specific operation.

minimal_increment: int | None = None

The minimal increment for bids, if any.

minimal_reputation: int

The minimal reputation required to bid on the auction.

note: str

The note of the auction entry.

note_raw: str

The raw note of the auction.

owner: UserShort

The owner of the auction.

platform: Platform

The platform the auction is on.

private: bool

Whether the auction is private or not.

starting_price: int

The starting price of the auction.

top_bid: int | None = None

The highest bid on the auction, if any.

updated: datetime

The date and time the auction entry was created.

visible: bool

Whether the auction is visible or not.

winner: str | None = None

The ID of the winner of the auction, if any.

class pytenno.models.auctions.KubrowAuction(type: AuctionType, name: str)[source]

Represents a kubrow auction.

name: str

The name of the kubrow.

type: AuctionType

The type of the auction. In this case, kubrow.

class pytenno.models.auctions.LichAuction(*, type: AuctionType, weapon_url_name: str, element: Element, damage: int, having_ephemera: bool, quirk: Optional[str] = None, name: Optional[str] = None)[source]

Represents a lich auction.

damage: int

The damage of the weapon.

element: Element

The element of the weapon.

having_ephemera: bool

Whether the weapon has an ephemera.

name: str | None = None

The name of the lich. Unused by the API.

quirk: str | None = None

The quirk of the lich, if any.

type: AuctionType

The type of the auction. In this case, lich.

weapon_url_name: str

The URL name of the weapon.

class pytenno.models.auctions.RivenAuction(type: AuctionType, attributes: list[pytenno.models.rivens.PartialRivenAttribute], name: str, mastery_level: int, re_rolls: int, weapon_url_name: str, polarity: Polarity, mod_rank: int)[source]

Represents a riven auction.

attributes: list[pytenno.models.rivens.PartialRivenAttribute]

The attributes of the riven.

mastery_level: int

The mastery level of the riven.

mod_rank: int

The rank of the riven.

name: str

The name of the riven.

polarity: Polarity

The polarity of the riven.

re_rolls: int

The number of times the riven has been rerolled.

type: AuctionType

The type of the auction. In this case, riven.

weapon_url_name: str

The URL of the weapon the riven is for.