curl --request GET \
--url https://api.orderly.org/v1/notification/inbox/unread \
--header 'orderly-account-id: <orderly-account-id>' \
--header 'orderly-key: <orderly-key>' \
--header 'orderly-signature: <orderly-signature>' \
--header 'orderly-timestamp: <orderly-timestamp>'{
"success": true,
"data": {
"rows": [
{
"id": 12345,
"message_type": "ORDER_FILLED",
"email": "[email protected]",
"application_id": "0x0f29bfb4c1bc9fea3f3be46bab6d795e22a6272354b136fde05f6b80cfcad546",
"title": " Your order has been filled",
"type": "TRADE",
"level": "GENERAL",
"content_summary": "Your order to buy 1 NEAR-PERP has been filled: 0.5/1 at 1.9876.",
"content": "<p>Your order to buy 1 NEAR-PERP has been filled: 0.5/1 at 1.9876.</p>",
"content_raw": {
"symbol": "PERP_NEAR_USDC",
"side": "BUY",
"order_id": 1,
"executed_price": 1.9876,
"executed_quantity": 0.5,
"executed_timestamp": 1567382401000
},
"mark_read": 1,
"operator": 1,
"created_time": 1670425970373,
"announcement_id": 123
}
],
"meta": {
"total": 9,
"records_per_page": 25,
"current_page": 1
},
"count": 123,
"lastId": 123
},
"timestamp": 1702989203989
}Limit: 10 requests per 60 seconds
GET /v1/notification/inbox/unread
Get the information on unread messages for the user.
curl --request GET \
--url https://api.orderly.org/v1/notification/inbox/unread \
--header 'orderly-account-id: <orderly-account-id>' \
--header 'orderly-key: <orderly-key>' \
--header 'orderly-signature: <orderly-signature>' \
--header 'orderly-timestamp: <orderly-timestamp>'{
"success": true,
"data": {
"rows": [
{
"id": 12345,
"message_type": "ORDER_FILLED",
"email": "[email protected]",
"application_id": "0x0f29bfb4c1bc9fea3f3be46bab6d795e22a6272354b136fde05f6b80cfcad546",
"title": " Your order has been filled",
"type": "TRADE",
"level": "GENERAL",
"content_summary": "Your order to buy 1 NEAR-PERP has been filled: 0.5/1 at 1.9876.",
"content": "<p>Your order to buy 1 NEAR-PERP has been filled: 0.5/1 at 1.9876.</p>",
"content_raw": {
"symbol": "PERP_NEAR_USDC",
"side": "BUY",
"order_id": 1,
"executed_price": 1.9876,
"executed_quantity": 0.5,
"executed_timestamp": 1567382401000
},
"mark_read": 1,
"operator": 1,
"created_time": 1670425970373,
"announcement_id": 123
}
],
"meta": {
"total": 9,
"records_per_page": 25,
"current_page": 1
},
"count": 123,
"lastId": 123
},
"timestamp": 1702989203989
}OK
true
Show child attributes
Show child attributes
12345
ORDER_FILLED
"ORDER_FILLED"
email if bounded to the account
wallet address of the account
"0x0f29bfb4c1bc9fea3f3be46bab6d795e22a6272354b136fde05f6b80cfcad546"
" Your order has been filled"
TRADE / SYSTEM
"TRADE"
GENERAL / IMPORTANT
"GENERAL"
"Your order to buy 1 NEAR-PERP has been filled: 0.5/1 at 1.9876."
"<p>Your order to buy 1 NEAR-PERP has been filled: 0.5/1 at 1.9876.</p>"
Show child attributes
"PERP_NEAR_USDC"
"BUY"
1
1.9876
0.5
1567382401000
1 = READ, 0 = UNREAD
1
1
1670425970373
number of unread messages
the id of the last unread message
1702989203989