myCollectionOffers
myCollectionOffers()
async def myCollectionOffers(authData: str) -> list[CollectionOffer]
Retrieve your placed collection offers
Returns
list
of CollectionOffer
objects
Raises
authDataError
ifauthData
is not providedrequestError
if request fails.
Parameters
authData
(str): Authentication data required to cancel the offer.
CollectionOffer object
Methods
.toDict()
- converts theCollectionOffer
object back to a dict
Attributes
.id
- retrievesoffer_id
.collection_id
- the id of the collection.sender_id-idof the offer sender(as far as i know its alwaysNone).amount
- amount of TON offered.max_nfts
- how many nfts can be bought with this offer.current_nfts
- how many nfts have already been bought with this offer.status
- status of the offer.created_at
- date+time of when the offer was created.updated_at
- date+time of when the offer was updated (if was).expires_at
- expiration date+time of the offer.name
- name of the gift collection.short_name
- short name of the gift collection.photo_url
- url link to the photo that represents the gift collection.floor_price
- lowest price for the gift from the collection
Example
from aportalsmp.offers import myCollectionOffers
from aportalsmp.auth import update_auth
import asyncio
auth = asyncio.run(update_auth(api_id=123, api_hash="..."))
async def main():
my = await myCollectionOffers(authData = auth)
for offer in my:
print(offer.id, offer.amount, offer.collection_id)
See used functions: update_auth
Last updated