What are usage credits and how to use them.

What are credits?

Credits are a unit of measurement that represents the computing resources your API consumes on Element Service. APIs that occupy more computing resources will consume more credits.

Endpoint costs

Each API uses a different amount of credits.

Orders

Route Credits Cost Per Request
/orders/post 1
/orders/postBatch 2
/orders/encodeTradeDataByOrderId 10
/orders/nonce 1
/orders/list 1
/orders/bestListings 1
/orders/depth 2

Collection

Route Credits Cost Per Request
/collection/fee 1
/collection 1
/collection/stats 1
/collection/ranking 1
/collection/search 2
/collection/bids 2

Contract

Route Credits Cost Per Request
/contract 1
/contract/owners 2

Asset

Route Credits Cost Per Request
/asset 1
/asset/assetEvents 2
/asset/refreshMeta 1
/assets/query 2
/assets/filters 3
/asset/owners 2

Account

Route Credits Cost Per Request
/account/orderList 1
/account/offerReceived 1
/account/offerList 1
/account/assetList 3
/account/activity 2

Websocket costs

Every 100 websocket messages received will consume 1 credit. You can filter websocket events to reduce credit usage.

How do I monitor my usage?

You can monitor your app's credit usage from the developer dashboard's usage section.