{"id":50888282,"url":"https://github.com/ivanzzeth/opinion-go-clob-client","last_synced_at":"2026-06-15T19:02:42.909Z","repository":{"id":361606225,"uuid":"1115321427","full_name":"ivanzzeth/opinion-go-clob-client","owner":"ivanzzeth","description":"CLOB client for opinion.trade written in Go","archived":false,"fork":false,"pushed_at":"2026-03-06T07:54:15.000Z","size":302,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-31T14:05:46.422Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ivanzzeth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-12T17:14:45.000Z","updated_at":"2026-03-10T08:18:46.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ivanzzeth/opinion-go-clob-client","commit_stats":null,"previous_names":["ivanzzeth/opinion-go-clob-client"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/ivanzzeth/opinion-go-clob-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanzzeth%2Fopinion-go-clob-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanzzeth%2Fopinion-go-clob-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanzzeth%2Fopinion-go-clob-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanzzeth%2Fopinion-go-clob-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ivanzzeth","download_url":"https://codeload.github.com/ivanzzeth/opinion-go-clob-client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanzzeth%2Fopinion-go-clob-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34376125,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-15T02:00:07.085Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-15T19:02:41.957Z","updated_at":"2026-06-15T19:02:42.901Z","avatar_url":"https://github.com/ivanzzeth.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Opinion CLOB Go Client\n\nGo client library for interacting with the Opinion CLOB (Central Limit Order Book) API.\n\n## Features\n\n- Market operations (list markets, get market details)\n- Token operations (get orderbook, latest price)\n- User operations (get balances, positions, orders, trades)\n- Order operations (place orders, cancel orders, batch operations)\n- Quote token management\n\n## Installation\n\n```bash\ngo get github.com/ivanzzeth/opinion-go-clob-client\n```\n\n## Quick Start\n\n1. Get your API key from Opinion platform\n2. Configure your environment (see Examples section below)\n3. Start using the client in your Go application\n\n## Examples\n\nThis library includes comprehensive examples demonstrating all available functionality. **All examples should be run from the project root directory.**\n\nFor detailed usage instructions and example code, please see the [examples directory](./examples/README.md). The examples cover:\n\n- **Market operations**: Listing markets, getting market details\n- **Token operations**: Getting orderbooks and latest prices\n- **User operations**: Querying balances, positions, orders, and trade history\n- **Order operations**: Placing and canceling orders\n\nEach example is a complete, runnable program that demonstrates how to use specific API endpoints. They serve as both documentation and starting points for your own implementations.\n\n## Configuration\n\nExamples require a `.env` file in the project root directory. Copy `.env.example` to `.env` and fill in your credentials:\n\n- `API_KEY`: Your Opinion API key (required for all operations)\n- `PRIVATE_KEY`: Your private key (required for trading operations)\n- `MULTI_SIG_ADDRESS`: Your multi-sig wallet address (required for trading operations)\n- `RPC_URL`: RPC endpoint URL (required for trading operations)\n- `CHAIN_ID`: Chain ID (defaults to 56 for BNB Chain)\n\n## Running Examples\n\n**Important**: All examples must be run from the **project root directory**. They automatically load the `.env` file from the project root.\n\nNavigate to the project root directory, then run any example:\n\n```bash\n# From project root directory\ngo run examples/market/list/main.go\ngo run examples/user/balance/main.go\ngo run examples/order/place/main.go \u003cmarket_id\u003e \u003ctoken_id\u003e \u003cside\u003e \u003cprice\u003e \u003camount\u003e\n```\n\nSee the [examples README](./examples/README.md) for complete usage instructions for each example.\n\n## Signer Configuration\n\nThe client uses a signer-based architecture for order operations. You need to provide a signer when creating the client:\n\n- Use `WithSigner()` option to provide a signer, funder address, and signature type\n- The signer is used for EIP-712 signing of orders\n- See the examples for how to create a signer from a private key\n\n## API Documentation\n\nFor detailed API documentation, refer to the Opinion API documentation. This client library provides Go bindings for the Opinion CLOB API endpoints.\n\n## License\n\nSee [LICENSE](LICENSE) file for details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivanzzeth%2Fopinion-go-clob-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fivanzzeth%2Fopinion-go-clob-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivanzzeth%2Fopinion-go-clob-client/lists"}