# FlashAPI > Comprehensive API documentation for Flash API, providing secure access to trading, account management, portfolio, balances, market data, and reporting services. ## API reference - [Frequently Asked Questions (FAQ)](https://flashapi.phs.vn/docs/api-reference/faqs.md): A single consolidated OpenAPI guide covering onboarding, usage, workflows, limits, and common questions. ### API documentation - [Welcome](https://flashapi.phs.vn/docs/api-reference/welcome.md): The official API platform of Phu Hung Securities (PHS) - [Error Code](https://flashapi.phs.vn/docs/api-reference/error-code.md) - [Rate limits](https://flashapi.phs.vn/docs/rate-limits.md) #### Priceboard - [Get symbol latest data](https://flashapi.phs.vn/docs/priceboard/get-symbol-latest-data.md): Returns the latest available market data for a symbol - [Get symbol statics data](https://flashapi.phs.vn/docs/priceboard/get-symbol-statics-data.md): Returns matching statistics by price step for a symbol. - [Get symbol matching data](https://flashapi.phs.vn/docs/priceboard/get-symbol-matching-data.md): Returns matching data for a symbol. - [Get all stocks](https://flashapi.phs.vn/docs/priceboard/get_all_stocks.md): Retrieve basic info for all market symbols, including underlying, derivative, CW, and index instruments. - [Get candlestick data](https://flashapi.phs.vn/docs/priceboard/Get_candlestick_data.md): Returns candlestick data for charting and time-series analysis. #### Authentication - [Underlying](https://flashapi.phs.vn/docs/authentication/underlying.md) - [Derivate](https://flashapi.phs.vn/docs/authentication/derivate.md) #### Placing Order - [Underlying](https://flashapi.phs.vn/docs/trading/Underlying.md): Place, update, and cancel underlying orders. - [Derivative](https://flashapi.phs.vn/docs/trading/Derivative.md): Place, update, and cancel derivative orders. - [Order Status](https://flashapi.phs.vn/docs/api-reference/error-status.md) #### Portfolio ##### Underlying - [Portfolio](https://flashapi.phs.vn/docs/inquiry/porfolio.md): Retrieve underlying portfolio data for an account. ##### Derivative - [Open Positions](https://flashapi.phs.vn/docs/derivative/open-position.md) - [Closed Positions](https://flashapi.phs.vn/docs/derivative/close-positions.md): Returns closed derivative positions for an account. #### Order History ##### Underlying - [Daily Order](https://flashapi.phs.vn/docs/trading/underlying-daily-order.md) - [Order History](https://flashapi.phs.vn/docs/trading/oderhistory/underlying/order-report.md): Returns underlying order report rows for an account and date range. ##### Derivative - [Daily Order](https://flashapi.phs.vn/docs/trading/derivative-daily-order.md) - [Order report](https://flashapi.phs.vn/docs/trading/order-report.md): Returns historical derivative order rows for an account and date range. #### Asset - [Underlying](https://flashapi.phs.vn/docs/balance/underlying-1.md): Returns underlying all asset data for an account. - [Derivative ](https://flashapi.phs.vn/docs/balance/derivative.md): Returns derivative asset data for an account. #### Socket - [Socket.IO-connection](https://flashapi.phs.vn/docs/Socket-connection.md) - [Market Data WebSocket](https://flashapi.phs.vn/docs/websocket/market-data.md): How to connect a socket to receive realtime market data (quotes, bid/offer) from FlashOAPI. - [Trading data WebSocket (EQT+FNO)](https://flashapi.phs.vn/docs/websocket/trading-data.md): How to connect a socket to receive realtime order, buying power, and portfolio data from FlashOAPI. #### Sandbox - [Introduction](https://flashapi.phs.vn/docs/Introduction.md): A first-time guide to the FlashAPI Sandbox environment - [How Sandbox URLs Work](https://flashapi.phs.vn/docs/how-sandbox-urls-work.md) - [Authentication Account](https://flashapi.phs.vn/docs/authentication-account.md) - [Market](https://flashapi.phs.vn/docs/market.md) - [Authentication — Underlying Account](https://flashapi.phs.vn/docs/authen-account-underlying.md) - [Authentication - Derivative Account](https://flashapi.phs.vn/docs/authen-account-derivative.md) - [Trading APIs — Underlying (Stocks)](https://flashapi.phs.vn/docs/trading-underlying.md) - [Trading APIs — Derivative (Futures)](https://flashapi.phs.vn/docs/trading-derivative.md): Trading Derivative Bearer required; x-lang, x-via, x-otp-token on POST/PUT/DELETE - [Account, Portfolio & Balance APIs — Underlying](https://flashapi.phs.vn/docs/account-portfolio-balance-underlying.md) - [Reference: Order Status Codes](https://flashapi.phs.vn/docs/ref-order-status-codes.md) - [Error Codes](https://flashapi.phs.vn/docs/error-codes.md) - [Appendix](https://flashapi.phs.vn/docs/appendix.md) ### Terms and conditions - [Risk Disclosure](https://flashapi.phs.vn/docs/risk-disclosure.md): PHS OpenAPI risk disclosure and client acknowledgement - [Service Scope Technical Appendix](https://flashapi.phs.vn/docs/service-scope-technical-apendix.md): Service scope, operational principles, and technical framework governing PHS OpenAPI - [Terms and Conditions](https://flashapi.phs.vn/docs/terms-and-conditions.md): Terms & Conditions governing the use of PHS OpenAPI - [OpenAPI Registration Form](https://flashapi.phs.vn/docs/registration-form.md): Please complete the registration form below to request access to PHS OpenAPI (Flash API). ## OpenAPI Specs - [openapi](/docs/api-reference/openapi.json) > The links below point to documentation indexes. Follow each `/_llms/` index recursively until you reach documentation pages. ## Indexes - [Vietnamese (42 pages)](https://flashapi.phs.vn/docs/_llms/vi.txt): Tài liệu tham chiếu API. This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.