{"id":21347138,"url":"https://github.com/kybernetwork/ks-limit-order-api-demo","last_synced_at":"2025-03-16T03:44:28.659Z","repository":{"id":200931595,"uuid":"706561398","full_name":"KyberNetwork/ks-limit-order-API-demo","owner":"KyberNetwork","description":"Sample implementation of KyberSwap Limit Order APIs","archived":false,"fork":false,"pushed_at":"2023-10-24T01:31:49.000Z","size":29,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-22T16:31:09.359Z","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":null,"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":null,"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":"2023-10-18T07:36:40.000Z","updated_at":"2024-03-26T09:41:31.000Z","dependencies_parsed_at":"2024-11-22T02:12:51.739Z","dependency_job_id":"58f6ba13-6c0b-4c87-a604-823dc98f1a19","html_url":"https://github.com/KyberNetwork/ks-limit-order-API-demo","commit_stats":null,"previous_names":["kybernetwork/ks-limit-order-api-demo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KyberNetwork%2Fks-limit-order-API-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KyberNetwork%2Fks-limit-order-API-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KyberNetwork%2Fks-limit-order-API-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KyberNetwork%2Fks-limit-order-API-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KyberNetwork","download_url":"https://codeload.github.com/KyberNetwork/ks-limit-order-API-demo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243822277,"owners_count":20353499,"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":[],"created_at":"2024-11-22T02:12:49.395Z","updated_at":"2025-03-16T03:44:28.640Z","avatar_url":"https://github.com/KyberNetwork.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# KyberSwap Limit Order API Demo\n\nThis repository serves as a guide for developers looking to interact with KyberSwap Limit Order via a typescript environment. For simplicity, the examples are implemented purely in Node.js so that users can focus on the backend logic required to achieve the following Limit Order operations:\n\n* General APIs\n    * Get Chain Supported Pairs (`getSupportedPairs()`)\n    * Get Limit Order Contract Addresses (`getContracts()`)\n* Maker APIs\n    * Get Unsigned Create Order Message (`postCreateOrderUnsigned()`)\n    * Create New Order (`postCreateOrder()`)\n    * Get List Of Orders By maker (`getMakerOrders()`)\n    * Get Maker Active Making Amount (`getMakerActiveAmount()`)\n    * Get Unsigned Cancel Order(s) Message (`postCancelOrderUnsigned()`)\n    * Submit Gasless Cancel Order(s) (`postCancelOrder()`)\n    * Generate Encoded Data For Batch Cancellation (`postCancelBatchOrders()`)\n    * Generate Encoded Data For Cancel All (`postCancelAllOrders()`)\n* Taker APIs\n    * Get Orders By Token Pair (`getOrders()`)\n    * Request Operator Signature For Maker Orders (`getOperatorSignature()`)\n    * Generate Encoded Data To Fill Order (`postFillOrder()`)\n    * Generate Encoded Data To Fill Batch Order (`postFillBatchOrders()`)\n\nTo aid with readability, each operation has its own `.ts` file which has been categorized under the `/src/operations/` folder. Users can run specific operations by commenting or uncommenting the relevant function in `index.ts`.\n\n## Getting Started\n\nTo run the examples:\n* Clone this repository\n* Install dependencies: `npm install`\n* Set up the [ethers.js signer](https://docs.ethers.org/v6/api/providers/#Signer) under `/src/libs/signer.ts`.\n* Run dev environment with Nodemon (auto-refresh on save): `npm run start:dev`\n* Run dev environment: `npm run start`\n\n## API Specifications\n\nFull API specifications available on our [Docs](https://docs.kyberswap.com/kyberswap-solutions/limit-order/limit-order-api-specification):\n* [General](https://docs.kyberswap.com/kyberswap-solutions/limit-order/limit-order-api-specification/general-apis)\n* [Maker](https://docs.kyberswap.com/kyberswap-solutions/limit-order/limit-order-api-specification/maker-apis)\n* [Taker](https://docs.kyberswap.com/kyberswap-solutions/limit-order/limit-order-api-specification/taker-apis)\n\n## Additional Notes\n\nNote that the code samples in this repository are not production-ready and are meant as references to get you started on integrating KyberSwap Limit Order functionality into your dApp.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkybernetwork%2Fks-limit-order-api-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkybernetwork%2Fks-limit-order-api-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkybernetwork%2Fks-limit-order-api-demo/lists"}