{"id":21157585,"url":"https://github.com/tradingstrategy-ai/spec","last_synced_at":"2025-07-09T12:33:06.740Z","repository":{"id":39995158,"uuid":"409670083","full_name":"tradingstrategy-ai/spec","owner":"tradingstrategy-ai","description":"Decentralised exchange trading data OpenAPI endpoints ","archived":false,"fork":false,"pushed_at":"2024-06-17T08:24:52.000Z","size":242,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-17T09:50:12.217Z","etag":null,"topics":["algorithmic-trading","decentralised-exchange","decentralized-applications","ethereum","openapi","swagger"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tradingstrategy-ai.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":"2021-09-23T16:40:59.000Z","updated_at":"2024-06-17T08:24:55.000Z","dependencies_parsed_at":"2023-11-06T08:31:05.742Z","dependency_job_id":"d89a5ba7-7fe0-4666-96ff-c75547f03e82","html_url":"https://github.com/tradingstrategy-ai/spec","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tradingstrategy-ai%2Fspec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tradingstrategy-ai%2Fspec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tradingstrategy-ai%2Fspec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tradingstrategy-ai%2Fspec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tradingstrategy-ai","download_url":"https://codeload.github.com/tradingstrategy-ai/spec/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225544992,"owners_count":17486217,"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":["algorithmic-trading","decentralised-exchange","decentralized-applications","ethereum","openapi","swagger"],"created_at":"2024-11-20T12:02:41.521Z","updated_at":"2024-11-20T12:02:42.262Z","avatar_url":"https://github.com/tradingstrategy-ai.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Trading Strategy API specifications\n\nDecentralised trading data API in [OpenAPI 3 standard](https://swagger.io/specification/). \n\n**Beta warning**: Use at your own risk. The API is not 100% ready yet.\n\nThis repository contains OpenAPI 3 specifications for two APIs\n\n* Open DeFi API for reading DEX data\n* Trade Executor API for managing automated trading strategies\n\n## Open DeFi API\n\nOpen DeFi API is a real-tie APId for server and browser accessible endpoints for decentralised exchange and blockchains. This data is useful for market data websites, real-time candel stick charts, chat bots, trading bots and similar.\n\n[Open the Swagger API explorer](https://tradingstrategy.ai/api/explorer/).\n\nThe data covers\n\n* Blockchains\n\n* Exchanges\n\n* Trading pairs\n\n* OHLCV candles\n\n* Available liquidity\n\n**Rate limit**: 200 API requests / minute\n\n## Trade Executor API\n\nA trade executor runs live trading strategies as a server-side process.\nIt offers a webhook API to query its current state.\n\nThe data covers\n \n* Current portfolio\n\n* Open and closed positions\n\n* Executed trades\n\n* Profit and loss\n\n* Deposit and withdraw events\n\n* Internal metrics and diagnostics\n\n**API explorer will be available later.**\n\n## On-chain data oracle\n\n**TODO**: The specification not yet available. [See Trading Strategy Python client for more information](https://tradingstrategy.ai/docs/programming/index.html).\n\nOracle data specification is intended for trading strategy backtesting, trading strategy programming, trading strategy oracles, trade instruction judge smart contracts and other on-chain logic. \n\nThis specification covers\n\n* API key accessible endpoints\n\n* [Downloading backtesting datasets](https://tradingstrategy.ai/datasets)\n\n# API directories\n\n* [APIguru](https://github.com/APIs-guru/openapi-directory)\n* [ProgrammableWeb](https://www.programmableweb.com/)\n* [RapidAPI](https://rapidapi.com/hub)\n* [IBM APIHarmony](https://apiharmony-open.mybluemix.net/public)\n\n# Notes\n\n- [Swagger online validator with human-readable errors](https://apitools.dev/swagger-parser/online/)\n\n- [OpenAPI specification](https://swagger.io/specification/)\n\n- [Pyramid example app](https://github.com/niteoweb/pyramid-realworld-example-app)\n\n- [Counduit OpenAPI yaml from Pyramid example app](https://github.com/niteoweb/pyramid-realworld-example-app/blob/master/src/conduit/openapi.yaml)\n\n- [Describing parameters](https://swagger.io/docs/specification/describing-parameters/)\n\n- [Query page size example](https://github.com/Pylons/pyramid_openapi3/issues/155)\n\n- [OpenAPI and arrays as query parameters (explode keyword)](https://swagger.io/docs/specification/serialization/)\n\n- [OpenAPI and JSON query parameters](https://www.baeldung.com/openapi-json-query-parameters)\n\n- [OpenAPI inter-file refs](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.0.md#referenceObject)\n\n- [OpenAPI inter-file refs](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.0.md#referenceObject)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftradingstrategy-ai%2Fspec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftradingstrategy-ai%2Fspec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftradingstrategy-ai%2Fspec/lists"}