On the wire · 05:01:24 UTC Live 575 · Prematch 14,330 · Markets 57,065 Vol. I · No. 5 · Friday 13 November 2026 wss://pinnfeed.io/v1/stream
PinnFeed
回答 · Go · WebSocket

ピナクルのオッズ用GoのWebSocketクライアント

更新日 · PinnFeed · 約1分で読めます

回答: x-api-key: ps_live_...ヘッダー付きでwss://pinnfeed.io/v1/streamに接続し、JSONのsubscribeを送り、各pingに{"type":"pong"}で応答し(サーバーは20秒ごとに送信)、バックオフ付きで再接続します。Builder(月額99ユーロ)が必要です。

概要#

// go get github.com/gorilla/websocket
hdr := http.Header{}
hdr.Set("x-api-key", os.Getenv("PINNFEED_KEY"))
c, _, err := websocket.DefaultDialer.Dial("wss://pinnfeed.io/v1/stream", hdr)
// write: {"type":"subscribe","sports":["soccer"],"markets":["moneyline"],"main":true}
// on {"type":"ping"} write {"type":"pong"}

プロトコルの詳細:スナップショットとデルタ、ping/pong、WebSocketドキュメント。

プラン#

Builder(月額99ユーロ)。3日間のトライアルがあります。カード登録が必要で、解約しない場合は3日目の後に課金されます。 無料キー:登録。

18歳以上の方を対象とした教育目的のコンテンツです。予想や利益の約束ではありません。日本では刑法により賭博は原則として禁止されています。

よくある質問#

公式のGo SDKはありますか?#

いいえ。通常のWebSocketとJSONで十分です。

キーをURLパラメータで渡せますか?#

はい、/v1/stream?key=ps_live_...も使えますが、クライアントが対応していればヘッダーを使ってください。

WebSocketプラン:Builder、月額99ユーロ

ピナクルのオッズを1本のWebSocketでリアルタイムに。全13競技、全マーケット、マージンなしのフェアオッズとクロージングオッズ。3日間無料、ワンクリックで解約できます。

Form K-1 · Free API key

Get your free API key.

One field. No password, no card: enter your email, click the link we send, and your key is on screen.

By continuing you agree to the Terms and Privacy Policy.

One free key per email. Link valid for 20 minutes.