{"id":13694259,"url":"https://github.com/nntaoli-project/goex","last_synced_at":"2025-05-14T16:11:54.186Z","repository":{"id":37734491,"uuid":"59748464","full_name":"nntaoli-project/goex","owner":"nntaoli-project","description":"Cryptocurrency Exchange REST API SDK Wrapper Implemented With the golang, Supporting OKX, Huobi, Binance","archived":false,"fork":false,"pushed_at":"2025-03-28T09:06:35.000Z","size":2163,"stargazers_count":1907,"open_issues_count":0,"forks_count":639,"subscribers_count":95,"default_branch":"master","last_synced_at":"2025-04-09T19:16:13.277Z","etag":null,"topics":["api-rest","binance","huobi","okx","quant"],"latest_commit_sha":null,"homepage":"","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/nntaoli-project.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}},"created_at":"2016-05-26T12:28:52.000Z","updated_at":"2025-04-09T06:17:00.000Z","dependencies_parsed_at":"2023-10-11T20:31:52.097Z","dependency_job_id":"b6fbc811-f2e5-4707-899c-debc6d289ec1","html_url":"https://github.com/nntaoli-project/goex","commit_stats":{"total_commits":631,"total_committers":36,"mean_commits":17.52777777777778,"dds":"0.26307448494453245","last_synced_commit":"d3aa0db8d754ad1bf2418284b684a2e48605625e"},"previous_names":["nntaoli/crypto_coin_api","nntaoli-project/crypto_coin_api"],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nntaoli-project%2Fgoex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nntaoli-project%2Fgoex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nntaoli-project%2Fgoex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nntaoli-project%2Fgoex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nntaoli-project","download_url":"https://codeload.github.com/nntaoli-project/goex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248094988,"owners_count":21046770,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["api-rest","binance","huobi","okx","quant"],"created_at":"2024-08-02T17:01:28.095Z","updated_at":"2025-04-09T19:16:19.986Z","avatar_url":"https://github.com/nntaoli-project.png","language":"Go","funding_links":[],"categories":["Go","Go (531)","Golang"],"sub_categories":["Trading \u0026 Backtesting"],"readme":"### Introduction\n* Unified and standardize the interfaces of various cryptocurrency trading platforms.\n\n![goex](goex_struct.png)\n\n### Donate\n* [BTC] 1GoEXwVvXG7kNdQSFaUNF35A3izHojLGxP\n* [USDT-TRC20] TGoExC6xvzE4wSA9cYZnwcPaXEjibA5Vtc\n\n### Example\n\n```golang\npackage main\n\nimport (\n\tgoexv2 \"github.com/nntaoli-project/goex/v2\"\n\t\"github.com/nntaoli-project/goex/v2/logger\"\n\t\"github.com/nntaoli-project/goex/v2/model\"\n\t\"github.com/nntaoli-project/goex/v2/options\"\n\t\"log\"\n)\n\nfunc main() {\n\tlogger.SetLevel(logger.DEBUG)                             // set log level\n\t//goexv2.DefaultHttpCli.SetProxy(\"socks5://127.0.0.1:1080\") //socks5 proxy\n\tgoexv2.DefaultHttpCli.SetTimeout(5)                       // 5 second\n\n\t_, _, err := goexv2.OKx.Spot.GetExchangeInfo() //must call\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\t\n\t//This CurrencyPair structure contains various information about the trading pair, such as price_precision and qty_precision,min_qty ...\n\tbtcUSDTCurrencyPair, err := goexv2.OKx.Spot.NewCurrencyPair(model.BTC, model.USDT)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\t\t\n\t//public api\n\tlog.Println(goexv2.OKx.Spot.GetTicker(btcUSDTCurrencyPair))\n\n\t//private api\n\tokxPrvApi := goexv2.OKx.Spot.NewPrvApi(\n\t\toptions.WithApiKey(\"\"), \n\t\toptions.WithApiSecretKey(\"\"), \n\t\toptions.WithPassphrase(\"\"))\n\t\n\t//create order api\n\torder, _, err := okxPrvApi.CreateOrder(btcUSDTCurrencyPair, 0.01, 18000, model.Spot_Buy, model.OrderType_Limit)\n\tlog.Println(err)\n\tlog.Println(order)\n}\n```\n\n### FAQ\n#### 1. okx simulated trading\nSee ([issues/238](https://github.com/nntaoli-project/goex/issues/238))\n\n#### 2. Filled The OrderClientID \n\n```\nord, resp, err := okxPrvApi.CreateOrder(btcUSDTCurrencyPair, 0.01, 23000,\n\t\tmodel.Spot_Buy, model.OrderType_Limit,\n\t\tmodel.OptionParameter{}.OrderClientID(\"goex123027892\")) //client id: goex123027892\n```\n\n### Thanks\n\u003ca href=\"https://www.jetbrains.com/?from=goex\"\u003e\u003cimg src=\"https://account.jetbrains.com/static/images/jetbrains-logo-inv.svg\" height=\"120\" alt=\"JetBrains\"/\u003e\u003c/a\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnntaoli-project%2Fgoex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnntaoli-project%2Fgoex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnntaoli-project%2Fgoex/lists"}