Random Number Generator (RNG)
Other Documentation
Market Place

Operations

Create Offer

1
p.create_offer(
2
item_ids, # list of items
3
issuer_id_or_name,
4
minimum_price, # asset type
5
maximum_price, # asset type
6
buying_item, # bool
7
offer_expiration_date, # "2020-09-18T11:05:39"
8
memo=None, # optional
9
)
Copied!
For example
1
p.create_offer(["1.31.5"], "1.2.9", {"amount":5,"asset_id":"1.3.0"}, {"amount":15,"asset_id":"1.3.0"}, False, "2030-09-18T11:05:39", "")
Copied!

Bid

1
p.create_bid(
2
bidder_account_id_or_name,
3
bid_price, # asset
4
offer_id, # offer_id type, 1.29.x
5
)
Copied!
For example
1
p.create_bid("1.2.10", {"amount":8,"asset_id":"1.3.0"}, offer["id"])
Copied!

Cancel Offer

1
p.cancel_offer(
2
issuer_account_id_or_name,
3
offer_id, # offer_id type, 1.29.x
4
)
Copied!
For example
1
p.cancel_offer("1.2.9", offer["id"])
Copied!

Calls for info

1
p.rpc.list_offers(lower_id, limit) # limt is number of entries requested as integer
2
p.rpc.list_sell_offers(lower_id, limit)
3
p.rpc.list_buy_offers(lower_id, limit)
4
p.rpc.list_offer_history(lower_id, limit)
5
p.rpc.get_offers_by_issuer(lower_id, issuer_account_id, limit)
6
p.rpc.get_offers_by_item(lower_id, nft_id_type_item, limit)
7
p.rpc.get_offer_history_by_issuer(lower_id, issuer_account_id, limit)
8
p.rpc.get_offer_history_by_item(lower_id, item, limit)
9
p.rpc.get_offer_history_by_bidder(lower_id, bidder_account_id, limit)
Copied!

Additional Info

For examples, refer to tests/test_market_place.py
Last modified 1yr ago
Export as PDF
Copy link
Contents
Operations