# Level2 Hub API

**Canonical:** https://apis.io/apis/level2/level2-hub-api/  
**Provider:** Level2 — https://apis.io/providers/level2/  
**Base URL:** https://hub2.trylevel2.com  
**Documentation:** https://learn.trylevel2.com/docs/Broker/API/broker-api

Level2 Hub API is one of 7 APIs that [Level2](https://apis.io/providers/level2/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. Tagged areas include Trading, Strategies, Backtesting, Brokerage, and Deployment. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an API reference, a getting-started guide, and authentication docs.

The live Level2 platform API — a single FastAPI service carrying 301 operations across the end-user surface (visual strategy canvas, backtesting, live and virtual deployment, market scanners, the strategy marketplace, prediction-market analytics) and the /broker/* partner surface brokers integrate against to register and manage their own customers' Level2 accounts, read strategies, deployments, trades and backtests, and measure execution latency and slippage. Broker partners authenticate with an HS256 JWT they mint themselves, capped at 180 minutes.

## Operations (60 of 301)

| Method | Path | Summary |
|---|---|---|
| GET | `/blloo` | Test |
| GET | `/remove_subscription` | Remove Subscription |
| POST | `/api/external_analysis` | Track Event |
| GET | `/health` | Health Check |
| POST | `/verify_session` | Verify Session |
| POST | `/register_user` | Register User |
| POST | `/auth/google` | Google Auth |
| POST | `/register_user_broker` | Register User Broker |
| POST | `/login_user_broker` | Login User Broker |
| POST | `/verify_user` | Verify User |
| POST | `/send_otp_password_reset` | Send Otp Password Reset |
| GET | `/ctrader_access` | Ctrader Access |
| GET | `/ctrader_auth_callback` | Ctrader Auth Callback |
| POST | `/reset_password` | Reset Password |
| POST | `/register_login` | Register Login |
| POST | `/session/relogin` | Relogin |
| POST | `/login` | Login |
| POST | `/generate_token` | Generate Token |
| GET | `/check_for_token` | Check For Token |
| POST | `/register_fcm_token` | Register Fcm Token |
| GET | `/get_instrument_suggestions_v2` | Get Instrument Suggestions V2 |
| GET | `/validate_b_token` | Validate B Token |
| POST | `/create_leverate_subdomain_secret` | Create Leverate Subdomain Secret |
| POST | `/generate_leverate_token` | Generate Leverate Token |
| POST | `/unlok/generate_token` | Generate Unlok Token |
| POST | `/unlok/auth` | Unlok Auth |
| POST | `/leverate_auth` | Leverate Auth |
| GET | `/check_latest_order_status` | Check Latest Order Status |
| POST | `/send_sms_otp` | Send Sms Otp |
| POST | `/validate_sms_otp` | Validate Sms Otp |
| GET | `/get_fcm_token_web` | Get Fcm Token Web |
| GET | `/get_all_notification_deployments` | Get All Notification Deployments |
| POST | `/undeploy_notification_strategy` | Undeploy Notification Strategy |
| POST | `/profile_publish_strategy` | Profile Publish Strategy |
| GET | `/get_published_strategies` | Get Published Strategies |
| POST | `/deploy_notification_strategy` | Deploy Notification Strategy |
| POST | `/deploy_scanner` | Deploy Scanner |
| POST | `/undeploy_scanner` | Undeploy Scanner |
| POST | `/get_scanner_deployments` | Get Scanner Deployments |
| GET | `/get_deployment_notifications` | Get Deployment Notifications |
| POST | `/read_deployment_notifications` | Read Deployment Notifications |
| POST | `/build_new_strategy` | Build New Strategy |
| POST | `/copy_strategy` | Copy Strategy |
| POST | `/like_strategy` | Like Strategy |
| POST | `/unlike_strategy` | Unlike Strategy |
| GET | `/check_trades_position` | Check Trades Position |
| GET | `/get_broker_specific_tickers` | Get Broker Specific Tickers |
| POST | `/publish_explore_strategy` | Publish Explore Strategy |
| GET | `/get_explore_strategies` | Get Explore Strategies |
| GET | `/get_explore_strategy_favourites` | Get Explore Strategy Favourites |
| GET | `/get_strategy_categories` | Get Strategy Categories |
| POST | `/search_explore_strategies` | Search Explore Strategies |
| GET | `/get_strategies_by_user` | Get Strategies |
| GET | `/get_strategies_performance_metrics` | Get Strategies Performance Metrics |
| GET | `/get_b2c_brokers` | Get B2C Brokers |
| POST | `/update_live_trade_in_order_book` | Update Live Trade In Order Book |
| GET | `/get_global_order_book` | Get Global Order Book |
| GET | `/get_referred_user_count` | Get Referred User Count |
| GET | `/get_live_expired_strategies_v2` | Get Live Expired Strategies V2 |
| GET | `/get_live_deps_pnl` | Get Live Deps Pnl |

…and 241 more operations. The page lists the first 250; the full set of 301 is in the OpenAPI linked below.

## Machine-readable artifacts (10)

- **OpenAPI** — https://raw.githubusercontent.com/api-evangelist/level2/refs/heads/main/openapi/level2-hub-controller-openapi.json
- **OpenAPI** — https://hub2.trylevel2.com/openapi.json
- **Overlay** — https://raw.githubusercontent.com/api-evangelist/level2/refs/heads/main/overlays/level2-hub-controller-overlay.yaml
- **Documentation** — https://learn.trylevel2.com/docs/Broker/API/broker-api
- **APIReference** — https://learn.trylevel2.com/docs/Broker/API/broker-api
- **GettingStarted** — https://learn.trylevel2.com/docs/Broker/getting-started
- **Authentication** — https://learn.trylevel2.com/docs/Broker/API/authentication
- **Postman** — https://learn.trylevel2.com/broker_apis.json
- **PostmanCollection** — https://raw.githubusercontent.com/api-evangelist/level2/refs/heads/main/collections/level2-broker-apis.postman_collection.json
- **APIsJSON** — https://raw.githubusercontent.com/api-evangelist/level2/refs/heads/main/apis.yml

## Other Level2 APIs (6)

- [level2 Backtesting API](https://apis.io/apis/level2/level2-backtesting-api/)
- [level2 Discovery API](https://apis.io/apis/level2/level2-discovery-api/)
- [level2 Market Data API](https://apis.io/apis/level2/level2-market-data-api/)
- [level2 Strategies API](https://apis.io/apis/level2/level2-strategies-api/)
- [level2 Technical Analysis API](https://apis.io/apis/level2/level2-technical-analysis-api/)
- [level2 Users API](https://apis.io/apis/level2/level2-users-api/)

## Tags

Trading, Strategies, Backtesting, Brokerage, Deployment, Market Data

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/level2/level2-hub-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/level2/.
