{"id":20800852,"url":"https://github.com/7k-ag/7k-sdk-ts","last_synced_at":"2026-03-06T10:05:40.740Z","repository":{"id":247122993,"uuid":"824038892","full_name":"7k-ag/7k-sdk-ts","owner":"7k-ag","description":null,"archived":false,"fork":false,"pushed_at":"2025-12-30T10:44:39.000Z","size":583,"stargazers_count":30,"open_issues_count":4,"forks_count":11,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-01-03T00:45:41.599Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/7k-ag.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2024-07-04T08:40:18.000Z","updated_at":"2025-12-30T10:44:36.000Z","dependencies_parsed_at":"2024-12-29T10:19:58.808Z","dependency_job_id":"046bc7cf-9c3d-4670-92ae-7d69dab12392","html_url":"https://github.com/7k-ag/7k-sdk-ts","commit_stats":null,"previous_names":["7k-ag/7k-sdk-ts"],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/7k-ag/7k-sdk-ts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7k-ag%2F7k-sdk-ts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7k-ag%2F7k-sdk-ts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7k-ag%2F7k-sdk-ts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7k-ag%2F7k-sdk-ts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/7k-ag","download_url":"https://codeload.github.com/7k-ag/7k-sdk-ts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7k-ag%2F7k-sdk-ts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30171657,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T07:56:45.623Z","status":"ssl_error","status_checked_at":"2026-03-06T07:55:55.621Z","response_time":250,"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":"2024-11-17T18:16:02.246Z","updated_at":"2026-03-06T10:05:40.684Z","avatar_url":"https://github.com/7k-ag.png","language":"TypeScript","funding_links":[],"categories":["**6\\. Detailed Data Tables of Financial Projects**","Client SDKs \u0026 Libraries"],"sub_categories":["**Table 1: Sui Ecosystem Financial Projects**","DeFi SDKs"],"readme":"# 7K TypeScript SDK\n\n## Installation\n\n```bash\nnpm i @7kprotocol/sdk-ts\n```\n\n## Usage\n\nYou can import the entire SDK as a module:\n\n```typescript\nimport SevenK from \"@7kprotocol/sdk-ts\";\n```\n\nor import specific functions as needed:\n\n```typescript\nimport { getQuote, buildTx } from \"@7kprotocol/sdk-ts\";\n```\n\n## Config\n\nConfiguration is optional, but if provided, it must be set before invoking any\nSDK functions.\n\n### Set API Key\n\nIf you’re calling our API from your server, contact us to request dedicated API\nkeys and minimize the risk of rate limiting.\n\n```typescript\nimport { Config } from \"@7kprotocol/sdk-ts\";\n\nConfig.setApiKey(\"YOUR_API_KEY\");\nconsole.log(\"API key\", Config.getApiKey());\n```\n\n### Set Sui Client\n\n```typescript\nimport { SuiClient, getFullnodeUrl } from \"@mysten/sui/client\";\nimport { Config } from \"@7kprotocol/sdk-ts\";\n\nconst network = \"mainnet\";\nconst suiClient = new SuiClient({ url: getFullnodeUrl(network) });\nConfig.setSuiClient(suiClient);\nconsole.log(\"Sui client\", Config.getSuiClient());\n```\n\nNote: this package only supports **mainnet** for now.\n\n## Swap\n\nSee [Swap](docs/SWAP.md).\n\n## Limit Orders\n\nSee [Limit Orders](docs/LIMIT.md).\n\n## DCA Orders\n\nSee [DCA Orders](docs/DCA.md).\n\n## Prices\n\n```typescript\nimport { getTokenPrice, getTokenPrices, getSuiPrice } from \"@7kprotocol/sdk-ts\";\n\nconst tokenPrice = await getTokenPrice(\n  \"0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC\",\n);\n\nconst tokenPrices = await getTokenPrices([\n  \"0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI\",\n  \"0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC\",\n]);\n\nconst suiPrice = await getSuiPrice();\n```\n\n## Miscellaneous\n\nIf you encounter issues when importing functions from this SDK in a Node.js\nenvironment, refer to [src/examples/nodejs/](./src/examples/nodejs/) for\nguidance.\n\n## License\n\n7K TypeScript SDK released under the MIT license. See the [LICENSE](./LICENSE)\nfile for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F7k-ag%2F7k-sdk-ts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F7k-ag%2F7k-sdk-ts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F7k-ag%2F7k-sdk-ts/lists"}