{"repo":"tigusigalpa/okx-go","free":true,"listed":false,"github":"https://github.com/tigusigalpa/okx-go","clone":"git clone https://github.com/tigusigalpa/okx-go.git","description":"Go client for OKX v5 API. 335 REST endpoints, 53 WebSocket channels. Type-safe models with generics, context support, auto-reconnect, demo trading mode. Covers trading, market data, account management, funding. Minimal dependencies (stdlib + gorilla/websocket). Thread-safe, production-ready. Go 1.21+","language":"Go","stars":20,"topics":["bitcoin","chainlink","cryprocurrency","go","go-client","go-library","go-package","golang","golang-library","golang-package"],"license":"MIT","category":"blockchain-web3","readme_excerpt":"OKX Golang SDK Go client for the OKX v5 API. Covers 335 REST endpoints and 53 WebSocket channels. Package: pkg.go.dev/github.com/tigusigalpa/okx-go 📖 Full documentation available on Wiki Install What's inside - 335 REST endpoints across 16 categories - 53 WebSocket channels (public, private, business) - Demo trading mode ( x-simulated-trading: 1 ) - context.Context everywhere - Typed request/response structs - WebSocket reconnect with exponential backoff - Goroutine-safe - Dependencies: stdlib + gorilla/websocket Quick start Runnable examples: REST WebSocket (public) WebSocket (private) Attached TP/SL (attachAlgoOrds) OKX rejects the legacy inline tpTriggerPx / slTriggerPx fields on POST /api/v5/trade/order for some instruments/scenarios with sCode=54070 (\"use the attachAlgoOrds array to place orders via Open API\"). Use models.PlaceOrderRequest.AttachAlgoOrds — the current Open API mechanism for attaching TP/SL to the main order (as opposed to a separate, unlinked algo order via PlaceAlgoOrder ): Notes: - AttachAlgoOrderRequest is a request-only DTO (all fields are pointers, so unset fields are omitted from the JSON payload). It is distinct from models.AttachAlgoOrder , which is the response shape returned inside Order.AttachAlgoOrds and has non-optional string fields. - Legacy inline TpTriggerPx / TpOrdPx / SlTriggerPx / SlOrdPx fields on PlaceOrderRequest are kept for backward compatibility, but prefer AttachAlgoOrds going forward. Options Option Description Default ------","default_branch":null,"files":null,"tree":[],"storefront":"/r/tigusigalpa","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/tigusigalpa/okx-go/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}