repositories
loading repo index
repositories
loading repo index
repository
loading code, commits, and activity
Mirrored from https://github.com/ProjectOpenSea/opensea-skill
stars
latest
clone command
git clone gitlawb://did:key:z6MkqRzA...RfoM/ProjectOpenSea-...git clone gitlawb://did:key:z6MkqRzA.../ProjectOpenSea-...fef93001Release v2.14.011h ago| # OpenSea Stream API (WebSocket) |
| #2 |
| #3 | ## Base endpoint |
| #4 | wss://stream-api.opensea.io/socket/websocket?token=YOUR_API_KEY |
| #5 |
| #6 | ## Join a collection channel |
| #7 | Send a Phoenix join message: |
| #8 |
| #9 | {"topic":"collection:your-collection-slug","event":"phx_join","payload":{},"ref":1} |
| #10 |
| #11 | Use "collection:*" to subscribe globally. |
| #12 |
| #13 | ## Heartbeat |
| #14 | Send every ~30 seconds: |
| #15 |
| #16 | {"topic":"phoenix","event":"heartbeat","payload":{},"ref":0} |
| #17 |
| #18 | ## Event types |
| #19 | - item_metadata_updated |
| #20 | - item_listed |
| #21 | - item_sold |
| #22 | - item_transferred |
| #23 | - item_received_bid |
| #24 | - item_cancelled |
| #25 |
| #26 | ## Notes |
| #27 | - Stream is WebSocket-based, not HTTP. curl is not suitable. |
| #28 | - Use scripts/stream/opensea-stream-collection.sh (websocat preferred). |
| #29 |