Building with the API - single gateway
Use Barfinex Provider as the single entry point for REST and real-time data.
Recommendation
Use Provider as the only API gateway for browser and integration clients. Provider owns the public REST boundary, real-time surfaces, app visibility, and published access to trading services.
Do not expose downstream service URLs, ports, or internal route inventories to the browser.
How It Works
| Source | Public access pattern |
|---|---|
| Provider | Direct Provider REST and real-time surfaces |
| Advisor | Provider-published capabilities |
| Inspector | Provider-published capabilities |
| Detector | Provider-published capabilities |
Use Provider OpenAPI and Provider API reference for the current route list.
Summary
| Question | Answer |
|---|---|
| Should the front-end call Advisor, Inspector, or Detector directly? | No. Use Provider. |
| Where do real-time events come from? | Provider-owned real-time surfaces and event catalog. |
| Where is route truth? | Provider OpenAPI and internal trading docs. |