Generated from the current FB API OpenAPI schema. View OpenAPI

Overview

Introduction

Overview of the FB API.

FB API provides programmatic access to user balances, portfolio positions, and order workflows. The docs are generated from the same OpenAPI document exposed by the Worker, so the reference stays aligned with the implementation.

APIs

Account API

https://api.jd.io

Read wallet address, allowance, and USDC balance for the authenticated user.

Portfolio API

https://api.jd.io

Read portfolio value, total PnL, and active positions.

Orders API

https://api.jd.io

Place orders, list open orders, fetch order details, and cancel orders.

Authentication

All `/v1/*` endpoints require a bearer API key in the `Authorization` header.

Next Steps