{"id":21461859,"url":"https://github.com/iowar/poloniex","last_synced_at":"2025-07-15T03:30:37.730Z","repository":{"id":57484755,"uuid":"115282473","full_name":"iowar/poloniex","owner":"iowar","description":"Poloniex API in Go","archived":false,"fork":false,"pushed_at":"2020-02-18T22:54:56.000Z","size":38,"stargazers_count":15,"open_issues_count":1,"forks_count":19,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-08T20:48:07.766Z","etag":null,"topics":["go","poloniex","poloniex-api"],"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/iowar.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}},"created_at":"2017-12-24T19:10:15.000Z","updated_at":"2023-02-23T11:47:22.000Z","dependencies_parsed_at":"2022-08-26T13:23:33.369Z","dependency_job_id":null,"html_url":"https://github.com/iowar/poloniex","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/iowar/poloniex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iowar%2Fpoloniex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iowar%2Fpoloniex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iowar%2Fpoloniex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iowar%2Fpoloniex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iowar","download_url":"https://codeload.github.com/iowar/poloniex/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iowar%2Fpoloniex/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265397504,"owners_count":23758443,"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":["go","poloniex","poloniex-api"],"created_at":"2024-11-23T07:11:43.200Z","updated_at":"2025-07-15T03:30:37.506Z","avatar_url":"https://github.com/iowar.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Poloniex API GO\n[![GoDoc](https://godoc.org/github.com/iowar/poloniex?status.svg)](https://godoc.org/github.com/iowar/poloniex)\n\nPoloniex Push, Public and Trading APIs.\n# Install\n~~~sh\n$ go get -u github.com/iowar/poloniex\n~~~ \n\n# APIs\n~~~go\nimport polo \"github.com/iowar/poloniex\"\n~~~\n## Push Api\nCreate websocket client.\n#### NewWSClient()\n~~~go\nws, err := polo.NewWSClient()\nif err != nil {\n    return\n}\n~~~\n* Push Api Methods\n    * SubscribeTicker()\n    * SubscribeMarket()\n    * UnsubscribeTicker()\n    * UnsubscribeMarket()\n\n\n### Ticker\n#### SubscribeTicker()\n~~~go\nerr = ws.SubscribeTicker()\nif err != nil {\n    return\n}\nfor {\n    fmt.Println(\u003c-ws.Subs[\"TICKER\"])\n}\n~~~\n#### UnsubscribeTicker()\n~~~go\nerr = ws.SubscribeTicker()\ngo func() {\n    time.Sleep(time.Second * 10)\n    ws.UnsubscribeTicker()\n}()\nfor {\n    fmt.Println(\u003c-ws.Subs[\"TICKER\"])\n}\n~~~\n\n### OrderDepth, OrderBook and Trades\n#### SubscribeMarket()\n~~~go\nerr = ws.SubscribeMarket(\"USDT_BTC\")\nif err != nil {\n    return\n}\nfor {\n    fmt.Println(\u003c-ws.Subs[\"USDT_BTC\"])\n}\n~~~\n#### UnsubscribeMarket()\n~~~go\nerr = ws.SubscribeMarket(\"USDT_BTC\")\nif err != nil {\n    return\n}\ngo func() {\n    time.Sleep(time.Second * 10)\n    ws.UnsubscribeMarket(\"USDT_BTC\")\n}()\nfor {\n    fmt.Println(\u003c-ws.Subs[\"USDT_BTC\"])\n}\n~~~~\n\n### Examples\n* See [Push Api Examples](https://github.com/iowar/poloniex/tree/master/examples/push)\n\n## Public Api\n~~~go\npoloniex, err := polo.NewClient(api_key, api_secret)\n~~~\n* Public Api Methods\n    * GetTickers()\n    * Get24hVolumes()\n    * GetOrderBook()\n    * GetPublicTradeHistory()\n    * GetChartData()\n    * GetCurrencies()\n    * GetLoanOrders()\n    \n#### Example\n~~~go\nresp, err := poloniex.GetTickers()\nif err != nil{\n    panic(err)\n}\nfmt.Println(resp)\n~~~\n* See [Public Api Examples](https://github.com/iowar/poloniex/tree/master/examples/public)\n\n## Trading Api\n~~~go\nconst (\n        api_key    = \"\"\n        api_secret = \"\"\n)\n~~~\n~~~go\npoloniex, err := polo.NewClient(api_key, api_secret)\n~~~ \n\n* Trading Api Methods\n    * GetBalances()\n    * GetCompleteBalances()\n    * GetAccountBalances()\n    * GetDepositAddresses()\n    * GenerateNewAddress()\n    * GetOpenOrders()\n    * GetAllOpenOrders()\n    * CancelOrder()\n    * GetTradeHistory()\n    * GetTradesByOrderID()\n    * GetOrderStat()\n    * Buy()\n    * Sell()\n\n\n#### Example\n~~~go\nresp, err := poloniex.Buy(\"btc_dgb\", 0.00000099, 10000)\nif err != nil{\n    panic(err)\n}\nfmt.Println(resp)\n~~~\n* See [Trading Api Examples](https://github.com/iowar/poloniex/tree/master/examples/trading)\n\nLicense\n----\n[MIT](https://github.com/iowar/poloniex/blob/master/LICENSE)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiowar%2Fpoloniex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiowar%2Fpoloniex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiowar%2Fpoloniex/lists"}