B2. Authentication — Derivative
Logs in with a derivative trading account and returns anaccess_token, refresh_token, and otp_token.
POST /auth/gen-secret-key/derivative
Sandbox URL
https://flashapi.phs.vn/sandbox/oapi/auth/gen-secret-key/derivativeParameters
Example Request (cURL against Sandbox)
Example Sandbox Response
Sandbox behavior: Sandbox accepts the demo username/password issued to you during onboarding (contact PHS OpenAPI support if you do not have one yet) and always returns the same fixedaccess_token,refresh_token, andotp_tokenshown below. Use these values exactly as returned — do not expect them to rotate between calls. Fixed sandbox fixture OTP token for this login:2c897da51e69cd6f3a0701884ed706ac— this is the same value you must send later asx-otp-tokenon derivative order requests.
