Build Friend.Tech Apps with Center's Newest API


August 23, 2023


← Back

We’re releasing a new suite of APIs to help power the growth and decentralization of friend.tech.

Tracking Recent Trades

Trades are one of the core building blocks for the Friend.Tech protocol. Using our API, you can see recent trades in several different ways:

  1. Trades Across the Entire Protocol: https://api.center.dev/v2/base-mainnet/friend-tech/events/trade
  2. Trades For a Single Subject: https://api.center.dev/v2/base-mainnet/friend-tech/events/trade/?subject=0xfd7232e66a69e1ae01e1e0ea8fab4776e2d325a9
  3. Trades For a Single Trader: https://api.center.dev/v2/base-mainnet/friend-tech/events/trade/?trader=0xf30ac41c6a19b6dc4d900419a7a1c50ae2128aff

Here's an example:

center ❤️ warp.dev

Leaderboards: Coming Soon

Beyond just seeing individual trades, our Friend.Tech API will soon support aggregate leaderboards, including:

  1. Top Subjects (Friends): Who is the most popular based on trading volume?
  2. Top Traders: See the top traders, sorted by volume and profitability. Combine that with our trades API to build a powerful stream and keep track of what the top traders are doing.

Real Time Events

Are also coming soon. We actually have not built this yet (otherwise we would have shipped it), but if this is something you would find useful, please let us know (omar@center.app) and we will ship it for you.