API

bro.trade on Berachain websocket and REST API.

The only difference between connecting to the BroTrade on Berachain API and the existing Vertex API is changing the host headers for the live API endpoints on Vertex from prod to berachain-prod.

  • Vertex API Endpoint Host Header = prod

  • BroTrade API Endpoint Host Header = berachain-prod

Access the full Vertex API documentation applicable to bro.trade here.

You can find a list of the live BroTrade on Berachain API endpoints below.


Berachain — Mainnet

  • Gateway Websocket: wss://gateway.bera-prod.bro.trade/ws

  • Gateway REST: https://gateway.bera-prod.bro.trade/v1

  • Gateway V2: https://gateway.bera-prod.bro.trade/v2

  • Subscriptions: wss://gateway.bera-prod.bro.trade/subscribe

  • Archive (Indexer): https://archive.bera-prod.bro.trade/v1

  • Archive (Indexer) V2: https://archive.bera-prod.bro.trade/v2

  • Trigger: https://trigger.bera-prod.bro.trade/v1

Berachain — Testnet

  • Gateway Websocket: wss://gateway.berachain-test.bro.trade/ws

  • Gateway REST: https://gateway.berachain-test.bro.trade/v1

  • Subscriptions: wss://gateway.berachain-test.bro.trade/subscribe

  • Archive (Indexer): https://archive.berachain-test.bro.trade/v1

  • Trigger: https://trigger.berachain-test.bro.trade/v1

bro.trade's API is divided into the following categories:

  1. A websocket/REST API (gateway) that supports writes (executes) and polling (queries).

  2. A subscriptions API that allows to subscribe to live data feeds.

  3. An indexer API (archive) that allows you to query historical data.

  4. A trigger API that allows to execute orders only under specified price conditions.

NOTE: To contact the bro.trade team with any questions or inquiries about Private Gateway connections, such as increased limits, please join our Discord and open a ticket:

GatewaySubscriptionsArchive (indexer)Trigger

Last updated