{"id":37163286,"url":"https://github.com/kybernetwork/uniswapv3-sdk","last_synced_at":"2026-01-14T19:25:11.808Z","repository":{"id":37928277,"uuid":"472263576","full_name":"KyberNetwork/uniswapv3-sdk","owner":"KyberNetwork","description":"🛠 A Go SDK for building applications on top of Uniswap V3","archived":false,"fork":true,"pushed_at":"2025-06-03T05:18:15.000Z","size":327,"stargazers_count":8,"open_issues_count":6,"forks_count":68,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-03T16:24:09.188Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"daoleno/uniswapv3-sdk","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KyberNetwork.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}},"created_at":"2022-03-21T09:16:16.000Z","updated_at":"2025-06-03T04:32:33.000Z","dependencies_parsed_at":"2023-02-09T19:15:44.268Z","dependency_job_id":null,"html_url":"https://github.com/KyberNetwork/uniswapv3-sdk","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/KyberNetwork/uniswapv3-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KyberNetwork%2Funiswapv3-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KyberNetwork%2Funiswapv3-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KyberNetwork%2Funiswapv3-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KyberNetwork%2Funiswapv3-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KyberNetwork","download_url":"https://codeload.github.com/KyberNetwork/uniswapv3-sdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KyberNetwork%2Funiswapv3-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28432592,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-01-14T19:25:11.039Z","updated_at":"2026-01-14T19:25:11.801Z","avatar_url":"https://github.com/KyberNetwork.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Uniswap V3 SDK\n\n[![API Reference](https://camo.githubusercontent.com/915b7be44ada53c290eb157634330494ebe3e30a/68747470733a2f2f676f646f632e6f72672f6769746875622e636f6d2f676f6c616e672f6764646f3f7374617475732e737667)](https://pkg.go.dev/github.com/daoleno/uniswapv3-sdk)\n[![Test](https://github.com/daoleno/uniswapv3-sdk/actions/workflows/test.yml/badge.svg)](https://github.com/daoleno/uniswapv3-sdk/actions/workflows/test.yml)\n[![Go Report Card](https://goreportcard.com/badge/github.com/daoleno/uniswapv3-sdk)](https://goreportcard.com/report/github.com/daoleno/uniswapv3-sdk)\n\n🛠 A Go SDK for building applications on top of Uniswap V3\n\n## Installation\n\n```sh\ngo get github.com/daoleno/uniswapv3-sdk\n```\n\n## Usage\n\nThe following example shows how to create a pool, and get the inputAmount\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"math/big\"\n\n\tcore \"github.com/daoleno/uniswap-sdk-core/entities\"\n\t\"github.com/daoleno/uniswapv3-sdk/constants\"\n\t\"github.com/daoleno/uniswapv3-sdk/entities\"\n\t\"github.com/daoleno/uniswapv3-sdk/utils\"\n\t\"github.com/ethereum/go-ethereum/common\"\n)\n\nvar (\n\tUSDC     = core.NewToken(1, common.HexToAddress(\"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\"), 6, \"USDC\", \"USD Coin\")\n\tDAI      = core.NewToken(1, common.HexToAddress(\"0x6B175474E89094C44Da98b954EedeAC495271d0F\"), 18, \"DAI\", \"Dai Stablecoin\")\n\tOneEther = big.NewInt(1e18)\n)\n\nfunc main() {\n\t// create demo ticks\n\tticks := []entities.Tick{\n\t\t{\n\t\t\tIndex:          entities.NearestUsableTick(utils.MinTick, constants.TickSpacings[constants.FeeLow]),\n\t\t\tLiquidityNet:   OneEther,\n\t\t\tLiquidityGross: OneEther,\n\t\t},\n\t\t{\n\t\t\tIndex:          entities.NearestUsableTick(utils.MaxTick, constants.TickSpacings[constants.FeeLow]),\n\t\t\tLiquidityNet:   new(big.Int).Mul(OneEther, constants.NegativeOne),\n\t\t\tLiquidityGross: OneEther,\n\t\t},\n\t}\n\n\t// create tick data provider\n\tp, err := entities.NewTickListDataProvider(ticks, constants.TickSpacings[constants.FeeLow])\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\t// new pool\n\tpool, err := entities.NewPool(USDC, DAI, constants.FeeLow, utils.EncodeSqrtRatioX96(constants.One, constants.One), OneEther, 0, p)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\t// USDC -\u003e DAI\n\toutputAmount := core.FromRawAmount(DAI, big.NewInt(98))\n\tinputAmount, _, err := pool.GetInputAmount(outputAmount, nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tfmt.Println(inputAmount.ToSignificant(4))\n}\n```\n\n[More Examples](./examples/README.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkybernetwork%2Funiswapv3-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkybernetwork%2Funiswapv3-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkybernetwork%2Funiswapv3-sdk/lists"}