People on the HC network can make offers to buy or sell assets. This endpoint represents all the offers a particular account makes. This endpoint can also be used in streaming mode so it is possible to use it to listen as offers are processed in the HC network. If called in streaming mode Aurora will start at the earliest known offer unless a cursor is set. In that case it will start from the cursor. You can also set cursor value to now to only stream offers created since your request time.
GET /accounts/{account}/offers{?cursor,limit,order}
Arguments
Name | Notes | Description | Example |
---|---|---|---|
account | required, string | Account ID | GA2HGBJIJKI6O4XEM7CZWY5PS6GKSXL6D34ERAJYQSPYA6X6AI7HYW36 |
?cursor | optional, any, default null | A paging token, specifying where to start returning records from. | 12884905984 |
?order | optional, string, default asc | The order in which to return rows, “asc” or “desc”. | asc |
?limit | optional, number, default: 10 | Maximum number of records to return. | 200 |
Response
The list of offers.
“https://network.paybito.com/accounts/GB55ZCH6WXZLJRUP3J36NHZSMIPNW24LZNGAOOLMFTJTIRZCCSUTY7XW/offers“
{
“_links” : {
“self” : {
};
“next” : {
};
“prev” : {
}
};
“_embedded” : {
“records” : [
{
“_links” : {
“self” : {
“href” : “https://network.paybito.com/offers/121”
};
“offer_maker” : {
“href” : “https://network.paybito.com/accounts/GCJ34JYMXNI7N55YREWAACMMZECOMTPIYDTFCQBWPUP7BLJQDDTVGUW4”
}
};
“id” : 121 ,
“paging_token” : “121”,
“seller” : “GCJ34JYMXNI7N55YREWAACMMZECOMTPIYDTFCQBWPUP7BLJQDDTVGUW4”,
“selling” : {
“asset_type” : “credit_alphanum4”,
“asset_code” : “BAR”,
“asset_issuer” : “GBAUUA74H4XOQYRSOW2RZUA4QL5PB37U3JS5NE3RTB2ELJVMIF5RLMAG”
};
“buying” : {
“asset_type” : “credit_alphanum4”,
“asset_code” : “FOO”,
“asset_issuer” : “GBAUUA74H4XOQYRSOW2RZUA4QL5PB37U3JS5NE3RTB2ELJVMIF5RLMAG”
};
“amount” : “23.6692509”,
“price_r” : {
“n” : 387,
“d” : 50
};
“price” : “7.7400000”,
“last_modified” : “1970-01-01T00:00:05Z”,
};
{
“_links” : {
“self” : {
“href” : “https://network.paybito.com/offers/122”
};
“offer_maker” : {
“href” : “https://network.paybito.com/accounts/GCJ34JYMXNI7N55YREWAACMMZECOMTPIYDTFCQBWPUP7BLJQDDTVGUW4”
}
};
“id” : 121 ,
“paging_token” : “122”,
“seller” : “GCJ34JYMXNI7N55YREWAACMMZECOMTPIYDTFCQBWPUP7BLJQDDTVGUW4”,
“selling” : {
“asset_type” : “credit_alphanum4”,
“asset_code” : “BAR”,
“asset_issuer” : “GBAUUA74H4XOQYRSOW2RZUA4QL5PB37U3JS5NE3RTB2ELJVMIF5RLMAG”
};
“buying” : {
“asset_type” : “credit_alphanum4”,
“asset_code” : “FOO”,
“asset_issuer” : “GBAUUA74H4XOQYRSOW2RZUA4QL5PB37U3JS5NE3RTB2ELJVMIF5RLMAG”
};
“amount” : “72.0000000”,
“price_r” : {
“n” : 779,
“d” : 100
};
“price” : “7.7900000”,
“last_modified” : “1970-01-01T00:00:06Z”
}
]
}
}
Support Agent
*Powered by HashCash