Sign Up
Skip to content

Marketplace Analytics Examples

Additionally, you can get deep insights into how your Sequence Marketplace is performing so you can report, track, and refine to earn more revenue.

Fetch Transactions on your Marketplace

Fetching the number of transaction events on the Sequence marketplace - these can used either be by total or a fixed time interval.

Total

cURL
curl 'https://api.sequence.build/rpc/Builder/MarketTxnEventTotal' \
  -H 'accept: */*' \
  -H 'authorization: BEARER <SECRET_API_ACCESS_KEY>' \
  -H 'content-type: application/json' \
  --data-raw '{"filter":{"projectId":<PROJECT_ID>,"startDate":"2024-04-23","endDate":"2024-05-23"}}'

Time Interval

cURL
curl 'https://api.sequence.build/rpc/Builder/MarketTxnEventDaily' \
  -H 'accept: */*' \
  -H 'authorization: BEARER <SECRET_API_ACCESS_KEY>' \
  -H 'content-type: application/json' \
  --data-raw '{"filter":{"projectId":<PROJECT_ID>,"startDate":"2024-04-23","endDate":"2024-05-23", "dateInterval":"DAY"}}'

Fetch Wallets on your Marketplace

Fetch wallets that have interacted with your marketplace - either by total across all time or broken down by days, weeks or months.

Total

cURL
curl 'https://api.sequence.build/rpc/Builder/MarketWalletsTotal' \
  -H 'accept: */*' \
  -H 'authorization: BEARER <SECRET_API_ACCESS_KEY>' \
  -H 'content-type: application/json' \
  --data-raw '{"filter":{"projectId":<PROJECT_ID>,"startDate":"2024-04-23","endDate":"2024-05-23"}}'

Time Interval

cURL
curl 'https://api.sequence.build/rpc/Builder/MarketWalletsDaily' \
  -H 'accept: */*' \
  -H 'authorization: BEARER <SECRET_API_ACCESS_KEY>' \
  -H 'content-type: application/json' \
  --data-raw '{"filter":{"projectId":<PROJECT_ID>,"startDate":"2024-04-23","endDate":"2024-05-23", "dateInterval":"DAY"}}'

Schema

All wallet analytic endpoints follow a similar request schema

  • Request: POST
  • Content-Type: application/json
  • Body (in JSON):
    • projectId (uint64) -- projectID of your project, can be found in the URL of the Builder project.
    • startDate (timestamp) -- starting date of the query in YYYY--MM--DD format
    • endDate (timestamp) -- ending date of the query in YYYY--MM--DD format
    • dateInterval (OPTIONAL string) -- date interval for the query, options are "DAY", "WEEK", or "MONTH"
  • Response (in JSON):
    • marketStats (marketStats[]) [
      • value
        • buyItems (uint64) -- number of items bought.
        • sellItems (uint64) -- number of items sold
      • label (string) -- label associated with the corresponding endpoint ]