> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://okx-demo.ferndocs.com/api/api-reference/dual-investment/get-products/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://okx-demo.ferndocs.com/_mcp/server. # Get product info GET https://www.okx.com/api/v5/finance/sfp/dcd/products Retrieve the list of available Dual Investment products for a given base currency, quote currency, and option type. Reference: https://okx-demo.ferndocs.com/api/api-reference/dual-investment/get-products ## Authentication - `OK-ACCESS-KEY` header (required) — Your API key. - `OK-ACCESS-SIGN` header (required) — Base64-encoded HMAC-SHA256 signature of the prehash string. - `OK-ACCESS-TIMESTAMP` header (required) — ISO 8601 UTC timestamp, e.g. 2020-12-08T09:08:57.715Z. - `OK-ACCESS-PASSPHRASE` header (required) — The passphrase you set when creating the API key. ## Request ### Query parameters - `baseCcy` (string, required) — Base currency, e.g. BTC in BTC-USDT. - `quoteCcy` (string, required) — Quote currency, e.g. USDT in BTC-USDT. - `optType` (enum, required) — Option type. C: Call (upward), P: Put (downward). - Allowed values: `C`, `P` ## Response ### 200 Successful response - `code` (string, optional) — Result code. `0` means success; any other value is an error code. - `msg` (string, optional) — Error message. Empty on success. - `data` (list of ApiV5FinanceSfpDcdProductsGetResponsesContentApplicationJsonSchemaDataItems, optional) ## Types ### ApiV5FinanceSfpDcdProductsGetResponsesContentApplicationJsonSchemaDataItems - `productId` (string, optional) — Product ID. - `baseCcy` (string, optional) — Base currency, e.g. BTC in BTC-USDT. - `quoteCcy` (string, optional) — Quote currency, e.g. USDT in BTC-USDT. - `uly` (string, optional) — Underlying, e.g. BTC-USDT. - `optType` (string, optional) — Option type. C: Call (upward), P: Put (downward). - `strike` (string, optional) — Strike price of the product. - `notionalCcy` (string, optional) — Currency of the subscription (notional) amount. - `minSize` (string, optional) — Minimum subscription amount. - `maxSize` (string, optional) — Maximum subscription amount. - `stepSz` (string, optional) — Subscription amount increment (step size). - `absYield` (string, optional) — Absolute yield for the product term. - `annualizedYield` (string, optional) — Annualized yield of the product. - `expTime` (string, optional) — Expiry (settlement) time, Unix timestamp in milliseconds. - `interestAccrualTime` (string, optional) — Interest accrual start time, Unix timestamp in milliseconds. - `listTime` (string, optional) — Product listing time, Unix timestamp in milliseconds. - `quoteTime` (string, optional) — Quote (pricing) time, Unix timestamp in milliseconds. - `tradeEndTime` (string, optional) — Subscription (trade) deadline, Unix timestamp in milliseconds. - `redeemStartTime` (string, optional) — Redemption window start time, Unix timestamp in milliseconds. - `redeemEndTime` (string, optional) — Redemption window end time, Unix timestamp in milliseconds. ## Examples **Response** ```json { "code": "0", "msg": "", "data": [ { "productId": "BTC-USDT-260327-54500-P", "baseCcy": "BTC", "quoteCcy": "USDT", "uly": "BTC-USD", "optType": "P", "strike": "54500", "notionalCcy": "USDT", "minSize": "10", "maxSize": "6000000", "stepSz": "1", "absYield": "0.00232413", "annualizedYield": "0.0541", "expTime": "1774598400000", "interestAccrualTime": "1773244800000", "listTime": "1743150759000", "quoteTime": "1773243808703", "tradeEndTime": "1774584000000", "redeemStartTime": "1773244800000", "redeemEndTime": "1774594800000" } ] } ``` **SDK Code** ```python dualInvestment_getProducts_example import requests url = "https://www.okx.com/api/v5/finance/sfp/dcd/products" querystring = {"baseCcy":"BTC","optType":"C","quoteCcy":"USDT"} headers = {"OK-ACCESS-KEY": ""} response = requests.get(url, headers=headers, params=querystring) print(response.json()) ``` ```javascript dualInvestment_getProducts_example const url = 'https://www.okx.com/api/v5/finance/sfp/dcd/products?baseCcy=BTC&optType=C"eCcy=USDT'; const options = {method: 'GET', headers: {'OK-ACCESS-KEY': ''}}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go dualInvestment_getProducts_example package main import ( "fmt" "net/http" "io" ) func main() { url := "https://www.okx.com/api/v5/finance/sfp/dcd/products?baseCcy=BTC&optType=C"eCcy=USDT" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("OK-ACCESS-KEY", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby dualInvestment_getProducts_example require 'uri' require 'net/http' url = URI("https://www.okx.com/api/v5/finance/sfp/dcd/products?baseCcy=BTC&optType=C"eCcy=USDT") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["OK-ACCESS-KEY"] = '' response = http.request(request) puts response.read_body ``` ```java dualInvestment_getProducts_example import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.get("https://www.okx.com/api/v5/finance/sfp/dcd/products?baseCcy=BTC&optType=C"eCcy=USDT") .header("OK-ACCESS-KEY", "") .asString(); ``` ```php dualInvestment_getProducts_example request('GET', 'https://www.okx.com/api/v5/finance/sfp/dcd/products?baseCcy=BTC&optType=C"eCcy=USDT', [ 'headers' => [ 'OK-ACCESS-KEY' => '', ], ]); echo $response->getBody(); ``` ```csharp dualInvestment_getProducts_example using RestSharp; var client = new RestClient("https://www.okx.com/api/v5/finance/sfp/dcd/products?baseCcy=BTC&optType=C"eCcy=USDT"); var request = new RestRequest(Method.GET); request.AddHeader("OK-ACCESS-KEY", ""); IRestResponse response = client.Execute(request); ``` ```swift dualInvestment_getProducts_example import Foundation let headers = ["OK-ACCESS-KEY": ""] let request = NSMutableURLRequest(url: NSURL(string: "https://www.okx.com/api/v5/finance/sfp/dcd/products?baseCcy=BTC&optType=C"eCcy=USDT")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" request.allHTTPHeaderFields = headers let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```