pilot/types.ts

okx-agent-trade-kit · packages/core/src/pilot/types.ts · typescript · MIT
integration

TypeScript interfaces for pilot proxy node responses and cache entries.

// Source: https://github.com/dex-original/okx-agent-trade-kit | License: MIT | Copyright 2026 OKX
// Provided via justclaw.it.com; keep this notice with the code.
/** A resolved Pilot proxy node returned by the okx-pilot binary. */
export interface PilotNode {
  /** Proxy node IP address (e.g. "203.0.113.42") */
  ip: string;
  /** Proxy hostname for Host header / TLS SNI (e.g. "proxy.example.com") */
  host: string;
  /** Cache TTL in seconds */
  ttl: number;
}

/** A failed node with expiration tracking. */
export interface FailedNode {
  ip: string;
  /** Timestamp (ms) when this node was marked as failed */
  failedAt: number;
}

/** Raw JSON output from the okx-pilot binary. */
export interface PilotBinaryResponse {
  code: number;
  data?: PilotNode;
  cached?: boolean;
  msg?: str

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key