### PHP example for monitor_new_low API Source: https://liangmai.pro/docs/intraday_monitor/monitor_new_low PHP example using cURL to call the monitor_new_low API. It sends a POST request with token and api parameters, then echoes the response. ```PHP $url = "https://liangmai.pro/api/gateway"; $data = [ 'token' => 'YOUR_TOKEN', 'api' => 'monitor_new_low', ]; $ch = curl_init($url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $res = curl_exec($ch); curl_close($ch); echo $res; ``` -------------------------------- ### JavaScript example for monitor_new_low API Source: https://liangmai.pro/docs/intraday_monitor/monitor_new_low JavaScript example using fetch to call the monitor_new_low API. It sends a POST request with URLSearchParams for token and api, then logs the JSON response. ```JavaScript const params = new URLSearchParams({ token: "YOUR_TOKEN", api: "monitor_new_low", }); fetch("https://liangmai.pro/api/gateway", { method: "POST", body: params }) .then(r => r.json()) .then(data => console.log(data)); ``` -------------------------------- ### Python example for monitor_new_low API Source: https://liangmai.pro/docs/intraday_monitor/monitor_new_low Python example using the requests library to call the monitor_new_low API. It sends a POST request to the gateway URL with token and api parameters, then prints the JSON response. ```Python import requests url = "https://liangmai.pro/api/gateway" params = { "token": "YOUR_TOKEN", "api": "monitor_new_low", } r = requests.post(url, params=params) print(r.json()) ``` -------------------------------- ### Python: Call market_quote_all API Source: https://liangmai.pro/docs/realtime/market_quote_all Python example for calling the market_quote_all API. Replace YOUR_TOKEN with your access token. The response is printed as JSON. ```python import requests url = "https://liangmai.pro/api/gateway" params = { "token": "YOUR_TOKEN", "api": "market_quote_all", } r = requests.post(url, params=params) print(r.json()) ``` -------------------------------- ### Python market_quote_pro request Source: https://liangmai.pro/docs/realtime/market_quote_pro Example of using the requests library to fetch market data. ```python import requests url = "https://liangmai.pro/api/gateway" params = { "token": "YOUR_TOKEN", "api": "market_quote_pro", "ts_code": "600519", } r = requests.post(url, params=params) print(r.json()) ``` -------------------------------- ### JavaScript: Call stockpool_strong API with fetch Source: https://liangmai.pro/docs/pools/stockpool_strong JavaScript example using fetch to POST the parameters as URLSearchParams and log the JSON response. ```javascript const params = new URLSearchParams({ token: "YOUR_TOKEN", api: "stockpool_strong", trade_date: "2024-01-15", }); fetch("https://liangmai.pro/api/gateway", { method: "POST", body: params }) .then(r => r.json()) .then(data => console.log(data)); ``` -------------------------------- ### PHP: Call finance_bj_balance_sheet API with cURL Source: https://liangmai.pro/docs/financial/finance_bj_balance_sheet PHP example using cURL to call the balance sheet API. It builds the POST data with token, API name, stock code, and start date, sends the request, and echoes the response. ```php $url = "https://liangmai.pro/api/gateway"; $data = [ 'token' => 'YOUR_TOKEN', 'api' => 'finance_bj_balance_sheet', 'full_code' => '920000', 'st' => '20240101', ]; $ch = curl_init($url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $res = curl_exec($ch); curl_close($ch); echo $res; ``` -------------------------------- ### JavaScript: Call finance_bj_balance_sheet API with fetch Source: https://liangmai.pro/docs/financial/finance_bj_balance_sheet JavaScript example using fetch to call the balance sheet API. It constructs URLSearchParams with token, API name, stock code, and start date, sends a POST request, and logs the JSON response. ```javascript const params = new URLSearchParams({ token: "YOUR_TOKEN", api: "finance_bj_balance_sheet", full_code: "920000", st: "20240101", }); fetch("https://liangmai.pro/api/gateway", { method: "POST", body: params }) .then(r => r.json()) .then(data => console.log(data)); ``` -------------------------------- ### Python: Call finance_bj_balance_sheet API Source: https://liangmai.pro/docs/financial/finance_bj_balance_sheet Python example using the requests library to call the balance sheet API. It sends a POST request to the gateway URL with the token, API name, stock code, and start date as query parameters, then prints the JSON response. ```python import requests url = "https://liangmai.pro/api/gateway" params = { "token": "YOUR_TOKEN", "api": "finance_bj_balance_sheet", "full_code": "920000", "st": "20240101", } r = requests.post(url, params=params) print(r.json()) ``` -------------------------------- ### 调用 basic_stock_instrument 接口(Python/PHP/JavaScript) Source: https://liangmai.pro/docs/lists/basic_stock_instrument 调用 basic_stock_instrument 接口获取证券基础信息。请求地址为 POST https://liangmai.pro/api/gateway,query 参数需携带 token 与 api=basic_stock_instrument,业务参数 full_code 为股票代码(可传 6 位自动补后缀)。示例使用 YOUR_TOKEN 占位符,需替换为实际访问令牌。 ```Python import requests url = "https://liangmai.pro/api/gateway" params = { "token": "YOUR_TOKEN", "api": "basic_stock_instrument", "full_code": "000001", } r = requests.post(url, params=params) print(r.json()) ``` ```PHP $url = "https://liangmai.pro/api/gateway"; $data = [ 'token' => 'YOUR_TOKEN', 'api' => 'basic_stock_instrument', 'full_code' => '000001', ]; $ch = curl_init($url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $res = curl_exec($ch); curl_close($ch); echo $res; ``` ```JavaScript const params = new URLSearchParams({ token: "YOUR_TOKEN", api: "basic_stock_instrument", full_code: "000001", }); fetch("https://liangmai.pro/api/gateway", { method: "POST", body: params }) .then(r => r.json()) .then(data => console.log(data)); ``` -------------------------------- ### JavaScript: Call market_quote_all API with fetch Source: https://liangmai.pro/docs/realtime/market_quote_all JavaScript example using fetch to POST to the gateway with token and api parameters. Replace YOUR_TOKEN with your access token. Logs the parsed JSON response. ```javascript const params = new URLSearchParams({ token: "YOUR_TOKEN", api: "market_quote_all", }); fetch("https://liangmai.pro/api/gateway", { method: "POST", body: params }) .then(r => r.json()) .then(data => console.log(data)); ``` -------------------------------- ### GET /idx_bj_realtime Source: https://liangmai.pro/docs/index 根据《京市指数列表》得到的指数代码获取实时交易数据(您可以理解为日线的最新数据),该接口为专业数据源。 ```APIDOC ## [GET] /idx_bj_realtime ### Description 根据《京市指数列表》得到的指数代码获取实时交易数据(您可以理解为日线的最新数据),该接口为专业数据源。 ### Method GET ### Endpoint /idx_bj_realtime ### Parameters #### Query Parameters - **code** (string) - Required - 指数代码,来自《京市指数列表》。 ### Response #### Success Response (200) - **code** (string) - 指数代码。 - **name** (string) - 指数名称。 - **price** (number) - 最新价。 - **change** (number) - 涨跌额。 - **changePercent** (number) - 涨跌幅。 #### Response Example { "code": "bj000001", "name": "北证50", "price": 1000.00, "change": 5.00, "changePercent": 0.50 } ``` -------------------------------- ### GET /idx_realtime Source: https://liangmai.pro/docs/index 获取指数最新快照(专业行情源)。 ```APIDOC ## [GET] /idx_realtime ### Description 获取指数最新快照(专业行情源)。 ### Method GET ### Endpoint /idx_realtime ### Parameters #### Query Parameters - **code** (string) - Required - 指数代码,如 sh000001。 ### Response #### Success Response (200) - **code** (string) - 指数代码。 - **name** (string) - 指数名称。 - **price** (number) - 最新价。 - **change** (number) - 涨跌额。 - **changePercent** (number) - 涨跌幅。 #### Response Example { "code": "sh000001", "name": "上证指数", "price": 3000.00, "change": 10.00, "changePercent": 0.33 } ``` -------------------------------- ### PHP 调用 flow_stock_stage_overview 接口 Source: https://liangmai.pro/docs/capital_flow/flow_stock_stage_overview 使用 cURL 发送 POST 请求,通过 http_build_query 构造请求体,输出响应内容。 ```PHP $url = "https://liangmai.pro/api/gateway"; $data = [ 'token' => 'YOUR_TOKEN', 'api' => 'flow_stock_stage_overview', ]; $ch = curl_init($url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $res = curl_exec($ch); curl_close($ch); echo $res; ``` -------------------------------- ### PHP: Call market_quote_all API with cURL Source: https://liangmai.pro/docs/realtime/market_quote_all PHP example using cURL to POST to the gateway with token and api parameters. Replace YOUR_TOKEN with your access token. Outputs the raw response. ```php $url = "https://liangmai.pro/api/gateway"; $data = [ 'token' => 'YOUR_TOKEN', 'api' => 'market_quote_all', ]; $ch = curl_init($url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $res = curl_exec($ch); curl_close($ch); echo $res; ``` -------------------------------- ### PHP 调用 monitor_volume_slump_days 接口 Source: https://liangmai.pro/docs/intraday_monitor/monitor_volume_slump_days 使用 cURL 发送 POST 请求,通过 http_build_query 构造请求体。需要替换 YOUR_TOKEN 为实际访问令牌。 ```PHP $url = "https://liangmai.pro/api/gateway"; $data = [ 'token' => 'YOUR_TOKEN', 'api' => 'monitor_volume_slump_days', ]; $ch = curl_init($url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $res = curl_exec($ch); curl_close($ch); echo $res; ``` -------------------------------- ### GET /idx_ma Source: https://liangmai.pro/docs/index 获取指数均线 MA 序列。支持 5/15/30/60/d/w/m/y 分时级别,可选 st、et、lt。 ```APIDOC ## [GET] /idx_ma ### Description 获取指数均线 MA 序列。支持 5/15/30/60/d/w/m/y 分时级别,可选 st、et、lt。 ### Method GET ### Endpoint /idx_ma ### Parameters #### Query Parameters - **code** (string) - Required - 指数代码。 - **period** (string) - Optional - 分时级别,支持 5、15、30、60、d、w、m、y。 - **st** (string) - Optional - 开始时间,格式 YYYYMMDD 或 YYYYMMDDhhmmss。 - **et** (string) - Optional - 结束时间,格式 YYYYMMDD 或 YYYYMMDDhhmmss。 - **lt** (integer) - Optional - 返回条数。 ### Response #### Success Response (200) - **code** (string) - 指数代码。 - **ma** (array) - MA 序列。 #### Response Example { "code": "sh000001", "ma": [ { "time": "20250101", "ma5": 3000.00, "ma10": 2990.00 } ] } ``` -------------------------------- ### Python 调用 market_snapshot_all 接口 Source: https://liangmai.pro/docs/realtime/market_snapshot_all 使用 requests 库发送 POST 请求获取全市场快照数据。 ```python import requests url = "https://liangmai.pro/api/gateway" params = { "token": "YOUR_TOKEN", "api": "market_snapshot_all", } r = requests.post(url, params=params) print(r.json()) ``` -------------------------------- ### GET /idx_kdj Source: https://liangmai.pro/docs/index 获取指数 KDJ 序列。支持 5/15/30/60/d/w/m/y 分时级别,可选 st、et、lt。 ```APIDOC ## [GET] /idx_kdj ### Description 获取指数 KDJ 序列。支持 5/15/30/60/d/w/m/y 分时级别,可选 st、et、lt。 ### Method GET ### Endpoint /idx_kdj ### Parameters #### Query Parameters - **code** (string) - Required - 指数代码。 - **period** (string) - Optional - 分时级别,支持 5、15、30、60、d、w、m、y。 - **st** (string) - Optional - 开始时间,格式 YYYYMMDD 或 YYYYMMDDhhmmss。 - **et** (string) - Optional - 结束时间,格式 YYYYMMDD 或 YYYYMMDDhhmmss。 - **lt** (integer) - Optional - 返回条数。 ### Response #### Success Response (200) - **code** (string) - 指数代码。 - **kdj** (array) - KDJ 序列。 #### Response Example { "code": "sh000001", "kdj": [ { "time": "20250101", "k": 50.0, "d": 50.0, "j": 50.0 } ] } ``` -------------------------------- ### PHP 调用 basic_stock_list 接口 Source: https://liangmai.pro/docs/lists/basic_stock_list 使用 cURL 发送 POST 请求,通过 http_build_query 构造表单数据,输出响应内容。需要替换 YOUR_TOKEN 为实际访问令牌。 ```PHP $url = "https://liangmai.pro/api/gateway"; $data = [ 'token' => 'YOUR_TOKEN', 'api' => 'basic_stock_list', ]; $ch = curl_init($url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $res = curl_exec($ch); curl_close($ch); echo $res; ``` -------------------------------- ### GET /idx_boll Source: https://liangmai.pro/docs/index 获取指数 BOLL 序列。支持 5/15/30/60/d/w/m/y 分时级别,可选 st、et、lt。 ```APIDOC ## [GET] /idx_boll ### Description 获取指数 BOLL 序列。支持 5/15/30/60/d/w/m/y 分时级别,可选 st、et、lt。 ### Method GET ### Endpoint /idx_boll ### Parameters #### Query Parameters - **code** (string) - Required - 指数代码。 - **period** (string) - Optional - 分时级别,支持 5、15、30、60、d、w、m、y。 - **st** (string) - Optional - 开始时间,格式 YYYYMMDD 或 YYYYMMDDhhmmss。 - **et** (string) - Optional - 结束时间,格式 YYYYMMDD 或 YYYYMMDDhhmmss。 - **lt** (integer) - Optional - 返回条数。 ### Response #### Success Response (200) - **code** (string) - 指数代码。 - **boll** (array) - BOLL 序列。 #### Response Example { "code": "sh000001", "boll": [ { "time": "20250101", "upper": 3010.00, "middle": 3000.00, "lower": 2990.00 } ] } ``` -------------------------------- ### JavaScript market_quote_pro request Source: https://liangmai.pro/docs/realtime/market_quote_pro Example of using the Fetch API to retrieve market data. ```javascript const params = new URLSearchParams({ token: "YOUR_TOKEN", api: "market_quote_pro", ts_code: "600519", }); fetch("https://liangmai.pro/api/gateway", { method: "POST", body: params }) .then(r => r.json()) .then(data => console.log(data)); ``` -------------------------------- ### Python: Call northbound_hk_history_sh API Source: https://liangmai.pro/docs/north_south/northbound_hk_history_sh Python example using the requests library to call the gateway endpoint. Replace YOUR_TOKEN with your access token. The response is printed as JSON. ```python import requests url = "https://liangmai.pro/api/gateway" params = { "token": "YOUR_TOKEN", "api": "northbound_hk_history_sh", } r = requests.post(url, params=params) print(r.json()) ``` -------------------------------- ### PHP market_quote_pro request Source: https://liangmai.pro/docs/realtime/market_quote_pro Example of using cURL in PHP to fetch market data. ```php $url = "https://liangmai.pro/api/gateway"; $data = [ 'token' => 'YOUR_TOKEN', 'api' => 'market_quote_pro', 'ts_code' => '600519', ]; $ch = curl_init($url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $res = curl_exec($ch); curl_close($ch); echo $res; ``` -------------------------------- ### Python call to fund_nav_rank_open_yield API Source: https://liangmai.pro/docs/fund/fund_nav_rank_open_yield Python example for calling the fund_nav_rank_open_yield API. It sends a POST request to the gateway with token and api parameters, then prints the JSON response. ```python import requests url = "https://liangmai.pro/api/gateway" params = { "token": "YOUR_TOKEN", "api": "fund_nav_rank_open_yield", } r = requests.post(url, params=params) print(r.json()) ``` -------------------------------- ### Call monitor_turnover_slump with Python Source: https://liangmai.pro/docs/intraday_monitor/monitor_turnover_slump Use the requests library to send a POST request to the gateway with the required token and API parameters. ```python import requests url = "https://liangmai.pro/api/gateway" params = { "token": "YOUR_TOKEN", "api": "monitor_turnover_slump", } r = requests.post(url, params=params) print(r.json()) ``` -------------------------------- ### PHP API Request Source: https://liangmai.pro/docs/lists/basic_hk_stock_list Example of calling the basic_hk_stock_list API using cURL in PHP. ```php $url = "https://liangmai.pro/api/gateway"; $data = [ 'token' => 'YOUR_TOKEN', 'api' => 'basic_hk_stock_list', ]; $ch = curl_init($url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $res = curl_exec($ch); curl_close($ch); echo $res; ``` -------------------------------- ### PHP MACD API Request Source: https://liangmai.pro/docs/technical/indicator_macd Example of requesting MACD data using cURL in PHP. ```php $url = "https://liangmai.pro/api/gateway"; $data = [ 'token' => 'YOUR_TOKEN', 'api' => 'indicator_macd', 'full_code' => '000001', 'st' => '20240101', ]; $ch = curl_init($url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $res = curl_exec($ch); curl_close($ch); echo $res; ``` -------------------------------- ### Call trade_daily_tips API with Python Source: https://liangmai.pro/docs/trading/trade_daily_tips Use the requests library to send a POST request to the gateway with the required token and API parameters. ```python import requests url = "https://liangmai.pro/api/gateway" params = { "token": "YOUR_TOKEN", "api": "trade_daily_tips", } r = requests.post(url, params=params) print(r.json()) ``` -------------------------------- ### JavaScript API Request Source: https://liangmai.pro/docs/lists/basic_hk_stock_list Example of calling the basic_hk_stock_list API using the fetch API in JavaScript. ```javascript const params = new URLSearchParams({ token: "YOUR_TOKEN", api: "basic_hk_stock_list", }); fetch("https://liangmai.pro/api/gateway", { method: "POST", body: params }) .then(r => r.json()) .then(data => console.log(data)); ``` -------------------------------- ### PHP 调用 announcement_list 接口 Source: https://liangmai.pro/docs/announcement/announcement_list 使用 cURL 发送 POST 请求到统一网关,通过 http_build_query 构造请求体,包含 token、api=announcement_list 和业务参数。输出响应结果。 ```php $url = "https://liangmai.pro/api/gateway"; $data = [ 'token' => 'YOUR_TOKEN', 'api' => 'announcement_list', 'stock_code' => '000001', 'st' => '20240101', ]; $ch = curl_init($url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $res = curl_exec($ch); curl_close($ch); echo $res; ``` -------------------------------- ### 调用 northbound_hk_component_sh 接口(Python/PHP/JavaScript) Source: https://liangmai.pro/docs/north_south/northbound_hk_component_sh 调用港股通(沪)成分股行情接口,按涨跌幅降序返回。需替换 YOUR_TOKEN 为有效访问令牌。接口返回 JSON,包含代码、名称、最高价、最低价、开盘价、涨跌幅、当前价格、成交额、涨跌额、成交量、昨日收盘价和更新时间等字段。 ```python import requests url = "https://liangmai.pro/api/gateway" params = { "token": "YOUR_TOKEN", "api": "northbound_hk_component_sh", } r = requests.post(url, params=params) print(r.json()) ``` ```php $url = "https://liangmai.pro/api/gateway"; $data = [ 'token' => 'YOUR_TOKEN', 'api' => 'northbound_hk_component_sh', ]; $ch = curl_init($url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $res = curl_exec($ch); curl_close($ch); echo $res; ``` ```javascript const params = new URLSearchParams({ token: "YOUR_TOKEN", api: "northbound_hk_component_sh", }); fetch("https://liangmai.pro/api/gateway", { method: "POST", body: params }) .then(r => r.json()) .then(data => console.log(data)); ``` -------------------------------- ### Python API Request Source: https://liangmai.pro/docs/lists/basic_hk_stock_list Example of calling the basic_hk_stock_list API using the requests library in Python. ```python import requests url = "https://liangmai.pro/api/gateway" params = { "token": "YOUR_TOKEN", "api": "basic_hk_stock_list", } r = requests.post(url, params=params) print(r.json()) ``` -------------------------------- ### PHP: Call stockpool_strong API with cURL Source: https://liangmai.pro/docs/pools/stockpool_strong PHP example using cURL to POST the token, api, and trade_date parameters to the gateway and output the response. ```php $url = "https://liangmai.pro/api/gateway"; $data = [ 'token' => 'YOUR_TOKEN', 'api' => 'stockpool_strong', 'trade_date' => '2024-01-15', ]; $ch = curl_init($url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $res = curl_exec($ch); curl_close($ch); echo $res; ``` -------------------------------- ### PHP kline_stop_price_history request Source: https://liangmai.pro/docs/kline/kline_stop_price_history Example of using cURL in PHP to perform the POST request to the gateway. ```php $url = "https://liangmai.pro/api/gateway"; $data = [ 'token' => 'YOUR_TOKEN', 'api' => 'kline_stop_price_history', 'full_code' => '000001', 'st' => '20240101', ]; $ch = curl_init($url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $res = curl_exec($ch); curl_close($ch); echo $res; ``` -------------------------------- ### 调用 northbound_hk_component_sz 接口(Python/PHP/JavaScript) Source: https://liangmai.pro/docs/north_south/northbound_hk_component_sz 调用港股通(深)成分股行情接口的三种语言示例。均需替换 YOUR_TOKEN 为实际访问令牌,并携带 api=northbound_hk_component_sz 参数。返回 JSON 包含 dm、mc、h、l、o、pc、p、cje、ud、v、yc、t 等字段。 ```python import requests url = "https://liangmai.pro/api/gateway" params = { "token": "YOUR_TOKEN", "api": "northbound_hk_component_sz", } r = requests.post(url, params=params) print(r.json()) ``` ```php $url = "https://liangmai.pro/api/gateway"; $data = [ 'token' => 'YOUR_TOKEN', 'api' => 'northbound_hk_component_sz', ]; $ch = curl_init($url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $res = curl_exec($ch); curl_close($ch); echo $res; ``` ```javascript const params = new URLSearchParams({ token: "YOUR_TOKEN", api: "northbound_hk_component_sz", }); fetch("https://liangmai.pro/api/gateway", { method: "POST", body: params }) .then(r => r.json()) .then(data => console.log(data)); ```