Skip to content

Commit 3eb5ef5

Browse files
authored
Merge pull request #229 from crypkit/2149-blockapi-btc-nft-api-replacement-after-simplehash-shutdown
fix(unisat): offers collection_id rename to collection
2 parents 58cd90b + e10a944 commit 3eb5ef5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

blockapi/v2/api/nft/unisat.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ def fetch_offers(
459459
event: Optional[str] = None,
460460
tick: Optional[str] = None,
461461
domain_type: Optional[str] = None,
462-
collection_id: Optional[str] = None,
462+
collection: Optional[str] = None,
463463
cursor: Optional[str] = None,
464464
limit: int = 100,
465465
) -> FetchResult:
@@ -473,7 +473,7 @@ def fetch_offers(
473473
event: Filter by event type (Listed, Cancel, Buy)
474474
tick: Filter by tick (for BRC20)
475475
domain_type: Filter by domain type
476-
collection_id: Collection ID to filter by
476+
collection: Collection ID to filter by
477477
cursor: Pagination cursor (offset, 'start' parameter)
478478
limit: Number of items per page
479479
@@ -500,8 +500,8 @@ def fetch_offers(
500500
filter_dict["tick"] = tick
501501
if domain_type:
502502
filter_dict["domainType"] = domain_type
503-
if collection_id:
504-
filter_dict["collectionId"] = collection_id
503+
if collection:
504+
filter_dict["collectionId"] = collection
505505

506506
request_body = {
507507
"filter": filter_dict,

0 commit comments

Comments
 (0)