# B2PRIME API

## B2PRIME API

- [Welcome to B2PRIME API docs](https://api-docs.b2prime.com/readme.md): Complete B2PRIME API documentation with getting started guides, REST and WSS API methods, release changelog. Everything you need to integrate trading APIs
- [Overview](https://api-docs.b2prime.com/get-started/overview.md): Complete B2PRIME API overview covering REST, WebSocket, and FIX APIs. Learn when to use each API type, available endpoints, and integration guidelines for trading applications
- [Market statuses](https://api-docs.b2prime.com/get-started/market-statuses.md): Understand how market statuses work to assess trading activity and respond to market changes effectively
- [Order types](https://api-docs.b2prime.com/get-started/order-types.md): Navigate order types and learn how execute Market, Limit, and Stop orders to manage your trading risks more effectively
- [Order statuses](https://api-docs.b2prime.com/get-started/order-statuses.md): Understand order statuses to track trading activity more effectively
- [Account statuses](https://api-docs.b2prime.com/get-started/account-statuses.md): Understand account statuses to know which operations are permitted on a trading account
- [Time in force](https://api-docs.b2prime.com/get-started/time-in-force.md): Explore various supported TIF options for better risk management
- [Price triggers](https://api-docs.b2prime.com/get-started/price-triggers.md): Understand how the Stop loss, Take profit, and Trailing stop triggers work to boost your risk management
- [Trading](https://api-docs.b2prime.com/rest-api/trading.md): Place orders, modify price triggers, execute trades and manage positions across multiple trading instruments
- [History](https://api-docs.b2prime.com/rest-api/history.md): Access comprehensive trading history with execution details, order data, and position closing information
- [Settings](https://api-docs.b2prime.com/rest-api/settings.md): Configure account margin settings, get market parameters, trading sessions, asset details, and system preferences for optimal trading setup
- [Trading](https://api-docs.b2prime.com/websocket-api/trading.md): Stream real-time open orders, open and closed positions with live updates, PnL tracking, and order status monitoring
- [Market Data](https://api-docs.b2prime.com/websocket-api/market-data.md): Stream real-time order books, trading charts, price data, and market summaries with live bid/ask updates
- [Account info](https://api-docs.b2prime.com/websocket-api/account-info.md): Stream real-time account balances, margin data, equity, PnL, and margin levels with live financial updates
- [Market Data](https://api-docs.b2prime.com/fix-api/market-data.md): Subscribe to real-time market data updates via FIX 4.4 protocol
- [Trading](https://api-docs.b2prime.com/fix-api/trading.md): Place orders and receive execution reports via FIX 4.4 protocol
- [Release notes](https://api-docs.b2prime.com/release-notes/release-notes.md): View the history of B2PRIME API releases with key points and major updates highlighted


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information, you can query the documentation dynamically by asking a question.
Perform an HTTP GET request on a page URL with the `ask` query parameter:
```
GET https://api-docs.b2prime.com/readme.md?ask=<question>
```
The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.
Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
