Aller au contenu
GET /v1/foreign

Foreign-investor flows & room

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/hose-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/hose-api/v1/foreign" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/hose-api/v1/foreign", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/hose-api/v1/foreign");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/hose-api/v1/foreign",
    headers={"x-oanor-key": "oanor_test_..."}
)

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "data": {
        "note": "Foreign-investor flows for one or more Vietnamese stocks — foreign buy and sell volume and value, and the remaining foreign-ownership room. Pass tickers (comma-separate, e.g. VIC,VNM). Foreign flows and room are closely watched on the Vietnamese market.",
        "count": 2,
        "flows": [
            {
                "ticker": "VIC",
                "remaining_room": 349535868.5,
                "foreign_buy_value": 0,
                "foreign_buy_volume": 0,
                "foreign_sell_value": 0,
                "foreign_sell_volume": 0
            },
            {
                "ticker": "VNM",
                "remaining_room": 107033647.7,
                "foreign_buy_value": 0,
                "foreign_buy_volume": 0,
                "foreign_sell_value": 0,
                "foreign_sell_volume": 0
            }
        ],
        "source": "HOSE / Vietnam (VPS)"
    },
    "meta": {
        "timestamp": "2026-06-15T02:10:48.774Z",
        "request_id": "8e9d3ed3-dbde-432d-9dfb-775d2593e813"
    },
    "status": "ok",
    "message": "Foreign flows retrieved successfully",
    "success": true
}