Skip to content

Latest commit

 

History

331 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trading Terminal

Introduction

This repository is a Trading Terminal customized to use OpenBB-style backend integrations. Whether hosted internally or externally, this approach provides a standardized structure that terminal widgets can read and display.

Note: most examples use Python FastAPI because it is the stack we know best, but you can implement the same pattern in other languages.

The main backend integration tenets are:

  1. Return data in JSON format (if your response is nested, you can use the dataKey field in widgets.json).
Example JSON
```json
[
  {
    "ticker": "AAPL",
    "name": "Apple Inc.",
    "price": 150.5,
    "marketCap": 2500000000,
    "change": 1.25
  },
  {
    "ticker": "GOOGL",
    "name": "Alphabet Inc.",
    "price": 2800.75,
    "marketCap": 1900000000,
    "change": -0.75
  },
  {
    "ticker": "MSFT",
    "name": "Microsoft Corporation",
    "price": 300.25,
    "marketCap": 220000000,
    "change": 0.98
  }
]
```
  1. Expose an endpoint that returns widgets.json: this file defines widget properties such as name, description, category, type, endpoint, and related metadata. Each widget is defined in this file. You can find examples in the template folders and a detailed definition below.

  2. Enable CORS: if you host locally, you must enable CORS.

  3. Authentication (optional): if your backend requires authentication, you can configure a query parameter or header when connecting through OpenBB Pro. These values are sent on every request once configured. If you need another authentication method, please reach out to us.

Getting Started

We recommend this order:

  1. Start with getting-started/hello-world.
  2. Continue with getting-started/reference-backend.

These examples provide a strong foundation for setting up your own backend and connecting it to the Trading Terminal widget ecosystem.

Leveraging AI

If you are using a coding agent to build your OpenBB backend, we recommend:

For more examples and guides, visit https://docs.openbb.co/workspace.

Examples of Apps

Explore open-source OpenBB apps built by the team and community: https://github.com/OpenBB-finance/awesome-openbb.

About

A Quantitative Pre-Trading Research tool with customized openBB backend for a more modular design

Topics

Resources

Stars

17 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages