@oomol-lab/open-connector 1.6.5 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/assets/open-connector/catalog/apps/airtable.json +134 -0
- package/assets/open-connector/catalog/apps/aisa.json +6985 -319
- package/assets/open-connector/catalog/apps/baizhi_mcp.json +135 -0
- package/assets/open-connector/catalog/apps/cal.json +24 -6
- package/assets/open-connector/catalog/apps/discordbot.json +2888 -248
- package/assets/open-connector/catalog/apps/drawio_mcp.json +192 -0
- package/assets/open-connector/catalog/apps/enormail.json +411 -0
- package/assets/open-connector/catalog/apps/feishu_app_bot.json +158 -0
- package/assets/open-connector/catalog/apps/firecrawl.json +176 -32
- package/assets/open-connector/catalog/apps/framejet.json +273 -0
- package/assets/open-connector/catalog/apps/futunn.json +2967 -0
- package/assets/open-connector/catalog/apps/github.json +275 -0
- package/assets/open-connector/catalog/apps/gitlab.json +125 -0
- package/assets/open-connector/catalog/apps/gmail.json +376 -0
- package/assets/open-connector/catalog/apps/google_analytics.json +4 -1
- package/assets/open-connector/catalog/apps/google_bigquery.json +4 -1
- package/assets/open-connector/catalog/apps/google_search_console.json +4 -1
- package/assets/open-connector/catalog/apps/googlecalendar.json +210 -1
- package/assets/open-connector/catalog/apps/googlechat.json +694 -7
- package/assets/open-connector/catalog/apps/googledocs.json +4 -1
- package/assets/open-connector/catalog/apps/googledrive.json +479 -0
- package/assets/open-connector/catalog/apps/googlesheets.json +148 -1
- package/assets/open-connector/catalog/apps/granola.json +23 -0
- package/assets/open-connector/catalog/apps/hithink_finance.json +6 -3
- package/assets/open-connector/catalog/apps/indexed.json +1115 -0
- package/assets/open-connector/catalog/apps/keepa.json +3534 -987
- package/assets/open-connector/catalog/apps/linear.json +133 -0
- package/assets/open-connector/catalog/apps/linear_mcp.json +510 -0
- package/assets/open-connector/catalog/apps/moneyforward_mcp.json +1432 -0
- package/assets/open-connector/catalog/apps/notion.json +588 -1
- package/assets/open-connector/catalog/apps/notion_mcp.json +490 -0
- package/assets/open-connector/catalog/apps/odoo.json +619 -0
- package/assets/open-connector/catalog/apps/one_drive.json +185 -0
- package/assets/open-connector/catalog/apps/outlook.json +212 -8
- package/assets/open-connector/catalog/apps/outlook_calendar.json +23 -2
- package/assets/open-connector/catalog/apps/postiz.json +334 -0
- package/assets/open-connector/catalog/apps/proworkflow.json +529 -0
- package/assets/open-connector/catalog/apps/sellersprite_mcp.json +2 -1
- package/assets/open-connector/catalog/apps/shopify.json +282 -0
- package/assets/open-connector/catalog/apps/slack.json +405 -0
- package/assets/open-connector/catalog/apps/slackbot.json +214 -0
- package/assets/open-connector/catalog/apps/spotify.json +46 -43
- package/assets/open-connector/catalog/apps/stripe.json +96 -0
- package/assets/open-connector/catalog/apps/telegram.json +138 -0
- package/assets/open-connector/catalog/apps/tencent_docs.json +3 -0
- package/assets/open-connector/catalog/apps/weixin_store.json +543 -2
- package/assets/open-connector/catalog/apps/wisburg.json +1528 -0
- package/assets/open-connector/catalog/apps/woocommerce.json +127 -0
- package/assets/open-connector/catalog/apps/youtube.json +4 -1
- package/assets/open-connector/catalog/apps/zendesk.json +152 -0
- package/assets/open-connector/catalog/apps/zerotier.json +3319 -0
- package/assets/open-connector/catalog/apps-index.json +1 -1
- package/assets/open-connector/migrations/0014_saas_project.sql +55 -0
- package/assets/open-connector/migrations/0015_saas_cleanup_runtime.sql +8 -0
- package/assets/open-connector/migrations/0016_trigger_policy.sql +1 -0
- package/assets/open-connector/migrations/0017_trigger_subscriptions.sql +17 -0
- package/assets/open-connector/migrations/postgresql/0014_saas_project.sql +55 -0
- package/assets/open-connector/migrations/postgresql/0015_saas_cleanup_runtime.sql +8 -0
- package/assets/open-connector/migrations/postgresql/0016_trigger_policy.sql +1 -0
- package/assets/open-connector/migrations/postgresql/0017_trigger_subscriptions.sql +17 -0
- package/package.json +2 -2
- package/src/connection-service.d.ts +40 -7
- package/src/connection-service.js +60 -18
- package/src/core/action-policy.d.ts +8 -1
- package/src/core/action-policy.js +51 -0
- package/src/core/cast.d.ts +13 -0
- package/src/core/cast.js +18 -1
- package/src/core/guarded-fetch.d.ts +11 -3
- package/src/core/guarded-fetch.js +19 -7
- package/src/core/provider-scenarios.js +67 -13
- package/src/core/remote-http.d.ts +33 -0
- package/src/core/remote-http.js +104 -0
- package/src/core/request.d.ts +1 -0
- package/src/core/request.js +11 -1
- package/src/core/types.d.ts +5 -1
- package/src/marketplace/marketplace-service.d.ts +0 -1
- package/src/marketplace/marketplace-service.js +80 -92
- package/src/mcp.js +26 -9
- package/src/oauth/oauth-client-config-service.d.ts +16 -1
- package/src/oauth/oauth-client-config-service.js +59 -3
- package/src/oauth/oauth-flow-service.d.ts +14 -1
- package/src/oauth/oauth-flow-service.js +14 -6
- package/src/providers/17track/runtime.js +1 -1
- package/src/providers/action-contracts.generated.d.ts +20 -6
- package/src/providers/aifinmarket/runtime.js +1 -1
- package/src/providers/airtable/executors.d.ts +3 -0
- package/src/providers/airtable/executors.js +2 -0
- package/src/providers/airtable/trigger-on-record-changed.d.ts +2 -0
- package/src/providers/airtable/trigger-on-record-changed.definition.d.ts +4 -0
- package/src/providers/airtable/trigger-on-record-changed.definition.js +54 -0
- package/src/providers/airtable/trigger-on-record-changed.js +235 -0
- package/src/providers/aisa/executors.js +912 -50
- package/src/providers/aliyun_ack/runtime.js +1 -1
- package/src/providers/aliyun_sls/runtime.js +1 -1
- package/src/providers/app_store_server/runtime-helpers.js +1 -1
- package/src/providers/baizhi_mcp/actions.d.ts +2 -0
- package/src/providers/baizhi_mcp/actions.js +40 -0
- package/src/providers/baizhi_mcp/executors.d.ts +3 -0
- package/src/providers/baizhi_mcp/executors.js +102 -0
- package/src/providers/bazhuayu/runtime.js +2 -2
- package/src/providers/bilibili/runtime.js +2 -4
- package/src/providers/bilibili/upload.js +9 -7
- package/src/providers/cal/actions.js +5 -1
- package/src/providers/cloudflare_browser_rendering/executors.js +1 -1
- package/src/providers/cloudflare_dns/executors.js +1 -1
- package/src/providers/{cloudflare-current-user.js → cloudflare_dns/runtime-user.js} +2 -2
- package/src/providers/cloudflare_dns/runtime.d.ts +1 -1
- package/src/providers/cloudflare_dns/runtime.js +1 -1
- package/src/providers/cloudflare_r2/executors.js +1 -1
- package/src/providers/cloudflare_r2/runtime.d.ts +1 -1
- package/src/providers/cloudflare_r2/runtime.js +1 -1
- package/src/providers/cloudflare_worker/executors.js +1 -1
- package/src/providers/cloudflare_worker/runtime.d.ts +1 -1
- package/src/providers/cloudflare_worker/runtime.js +1 -1
- package/src/providers/dingtalk_mcp/runtime.js +1 -1
- package/src/providers/discordbot/executors.d.ts +0 -9
- package/src/providers/discordbot/executors.js +9 -101
- package/src/providers/discordbot/runtime-guilds.d.ts +3 -0
- package/src/providers/discordbot/runtime-guilds.js +464 -0
- package/src/providers/discordbot/runtime.d.ts +42 -0
- package/src/providers/discordbot/runtime.js +124 -0
- package/src/providers/drawio_mcp/executors.d.ts +3 -0
- package/src/providers/drawio_mcp/executors.js +19 -0
- package/src/providers/drawio_mcp/runtime.d.ts +8 -0
- package/src/providers/drawio_mcp/runtime.js +175 -0
- package/src/providers/enormail/executors.d.ts +4 -0
- package/src/providers/enormail/executors.js +97 -0
- package/src/providers/fastmoss_mcp/executors.js +2 -2
- package/src/providers/feishu_app_bot/executors.d.ts +3 -0
- package/src/providers/feishu_app_bot/executors.js +2 -0
- package/src/providers/feishu_app_bot/trigger-config.d.ts +1 -0
- package/src/providers/feishu_app_bot/trigger-config.js +10 -0
- package/src/providers/feishu_app_bot/trigger-on-event.d.ts +2 -0
- package/src/providers/feishu_app_bot/trigger-on-event.definition.d.ts +4 -0
- package/src/providers/feishu_app_bot/trigger-on-event.definition.js +63 -0
- package/src/providers/feishu_app_bot/trigger-on-event.js +29 -0
- package/src/providers/feishu_app_bot/trigger-subscriptions.d.ts +5 -0
- package/src/providers/feishu_app_bot/trigger-subscriptions.js +70 -0
- package/src/providers/finchina/executors.js +1 -1
- package/src/providers/framejet/executors.d.ts +4 -0
- package/src/providers/framejet/executors.js +19 -0
- package/src/providers/framejet/runtime.d.ts +16 -0
- package/src/providers/framejet/runtime.js +148 -0
- package/src/providers/futunn/actions.d.ts +2 -0
- package/src/providers/futunn/actions.js +152 -0
- package/src/providers/futunn/actions.research.d.ts +2 -0
- package/src/providers/futunn/actions.research.js +423 -0
- package/src/providers/futunn/actions.trading.d.ts +2 -0
- package/src/providers/futunn/actions.trading.js +204 -0
- package/src/providers/futunn/executors.d.ts +3 -0
- package/src/providers/futunn/executors.js +24 -0
- package/src/providers/futunn/runtime-research.d.ts +3 -0
- package/src/providers/futunn/runtime-research.js +133 -0
- package/src/providers/futunn/runtime-trading.d.ts +3 -0
- package/src/providers/futunn/runtime-trading.js +39 -0
- package/src/providers/futunn/runtime.d.ts +2 -0
- package/src/providers/futunn/runtime.js +50 -0
- package/src/providers/futunn/transport.d.ts +11 -0
- package/src/providers/futunn/transport.js +76 -0
- package/src/providers/gildata/executors.js +1 -1
- package/src/providers/github/executors.d.ts +3 -0
- package/src/providers/github/executors.js +6 -0
- package/src/providers/github/trigger-on-repo-event.d.ts +2 -0
- package/src/providers/github/trigger-on-repo-event.definition.d.ts +4 -0
- package/src/providers/github/trigger-on-repo-event.definition.js +94 -0
- package/src/providers/github/trigger-on-repo-event.js +168 -0
- package/src/providers/github/trigger-watch-pull-request.d.ts +2 -0
- package/src/providers/github/trigger-watch-pull-request.definition.d.ts +4 -0
- package/src/providers/github/trigger-watch-pull-request.definition.js +49 -0
- package/src/providers/github/trigger-watch-pull-request.js +106 -0
- package/src/providers/gitlab/executors.d.ts +3 -0
- package/src/providers/gitlab/executors.js +2 -0
- package/src/providers/gitlab/trigger-on-project-event.d.ts +2 -0
- package/src/providers/gitlab/trigger-on-project-event.definition.d.ts +5 -0
- package/src/providers/gitlab/trigger-on-project-event.definition.js +63 -0
- package/src/providers/gitlab/trigger-on-project-event.js +186 -0
- package/src/providers/gmail/executors.d.ts +3 -0
- package/src/providers/gmail/executors.js +5 -3
- package/src/providers/gmail/message.d.ts +6 -8
- package/src/providers/gmail/message.js +4 -0
- package/src/providers/gmail/scopes.d.ts +32 -0
- package/src/providers/gmail/scopes.js +37 -0
- package/src/providers/gmail/trigger-on-message-received.d.ts +2 -0
- package/src/providers/gmail/trigger-on-message-received.definition.d.ts +4 -0
- package/src/providers/gmail/trigger-on-message-received.definition.js +74 -0
- package/src/providers/gmail/trigger-on-message-received.js +232 -0
- package/src/providers/google_analytics/executors.js +2 -2
- package/src/providers/google_analytics/scopes.js +6 -1
- package/src/providers/google_bigquery/executors.js +2 -2
- package/src/providers/google_bigquery/scopes.js +2 -0
- package/src/providers/google_search_console/executors.js +2 -2
- package/src/providers/google_search_console/scopes.js +2 -0
- package/src/providers/googleads/executors.js +1 -1
- package/src/providers/googleads/scopes.d.ts +1 -3
- package/src/providers/googleads/scopes.js +2 -4
- package/src/providers/googlecalendar/executors.d.ts +3 -0
- package/src/providers/googlecalendar/executors.js +3 -1
- package/src/providers/googlecalendar/runtime-shared.js +2 -2
- package/src/providers/googlecalendar/scopes.js +2 -0
- package/src/providers/googlecalendar/trigger-on-event-changed.d.ts +2 -0
- package/src/providers/googlecalendar/trigger-on-event-changed.definition.d.ts +4 -0
- package/src/providers/googlecalendar/trigger-on-event-changed.definition.js +74 -0
- package/src/providers/googlecalendar/trigger-on-event-changed.js +233 -0
- package/src/providers/googlechat/executors.d.ts +1 -3
- package/src/providers/googlechat/executors.js +219 -28
- package/src/providers/googlechat/members.d.ts +55 -0
- package/src/providers/googlechat/members.js +293 -0
- package/src/providers/googlechat/runtime.d.ts +16 -0
- package/src/providers/googlechat/runtime.js +25 -0
- package/src/providers/googlechat/scopes.d.ts +22 -3
- package/src/providers/googlechat/scopes.js +30 -7
- package/src/providers/googledocs/executors.js +1 -1
- package/src/providers/googledrive/executors.d.ts +3 -0
- package/src/providers/googledrive/executors.js +9 -2
- package/src/providers/{google-auth.d.ts → googledrive/runtime-auth.d.ts} +2 -2
- package/src/providers/{google-auth.js → googledrive/runtime-auth.js} +3 -3
- package/src/providers/googledrive/runtime-collaboration.js +1 -1
- package/src/providers/{google-runtime.d.ts → googledrive/runtime-request.d.ts} +1 -1
- package/src/providers/{google-runtime.js → googledrive/runtime-request.js} +2 -2
- package/src/providers/googledrive/trigger-changes.d.ts +12 -0
- package/src/providers/googledrive/trigger-changes.definition.d.ts +7 -0
- package/src/providers/googledrive/trigger-changes.definition.js +101 -0
- package/src/providers/googledrive/trigger-changes.js +452 -0
- package/src/providers/googledrive/trigger-on-file-change.d.ts +2 -0
- package/src/providers/googledrive/trigger-on-file-change.definition.d.ts +4 -0
- package/src/providers/googledrive/trigger-on-file-change.definition.js +77 -0
- package/src/providers/googledrive/trigger-on-file-change.js +258 -0
- package/src/providers/googleforms/executors.js +2 -2
- package/src/providers/googleforms/scopes.d.ts +0 -3
- package/src/providers/googleforms/scopes.js +2 -6
- package/src/providers/googlemeet/executors.js +2 -2
- package/src/providers/googlemeet/scopes.d.ts +0 -3
- package/src/providers/googlemeet/scopes.js +2 -6
- package/src/providers/googlesheets/executors.d.ts +3 -0
- package/src/providers/googlesheets/executors.js +3 -1
- package/src/providers/googlesheets/scopes.js +2 -0
- package/src/providers/googlesheets/trigger-on-row-added.d.ts +2 -0
- package/src/providers/googlesheets/trigger-on-row-added.definition.d.ts +4 -0
- package/src/providers/googlesheets/trigger-on-row-added.definition.js +54 -0
- package/src/providers/googlesheets/trigger-on-row-added.js +234 -0
- package/src/providers/googleslides/executors.js +2 -2
- package/src/providers/googleslides/scopes.d.ts +0 -3
- package/src/providers/googleslides/scopes.js +2 -6
- package/src/providers/googletasks/executors.js +2 -2
- package/src/providers/googletasks/scopes.d.ts +0 -3
- package/src/providers/googletasks/scopes.js +2 -6
- package/src/providers/granola/actions.js +2 -0
- package/src/providers/granola/runtime-mcp.js +2 -0
- package/src/providers/granola/runtime.js +2 -2
- package/src/providers/hithink_finance/runtime.js +1 -1
- package/src/providers/indexed/executors.d.ts +4 -0
- package/src/providers/indexed/executors.js +16 -0
- package/src/providers/indexed/runtime.d.ts +26 -0
- package/src/providers/indexed/runtime.js +129 -0
- package/src/providers/indiegogo/executors.js +1 -1
- package/src/providers/investoday_mcp/executors.js +2 -2
- package/src/providers/iyunbiao/runtime.js +2 -2
- package/src/providers/keepa/actions.d.ts +1 -1
- package/src/providers/keepa/actions.js +371 -149
- package/src/providers/keepa/deal-attributes.d.ts +1 -0
- package/src/providers/keepa/deal-attributes.js +26 -0
- package/src/providers/keepa/runtime.js +212 -18
- package/src/providers/kingdee/executors.js +1 -1
- package/src/providers/kingdee/runtime.js +2 -2
- package/src/providers/kuaidi100/runtime.js +1 -1
- package/src/providers/linear/executors.d.ts +3 -0
- package/src/providers/linear/executors.js +14 -9
- package/src/providers/linear/trigger-on-issue-changed.d.ts +2 -0
- package/src/providers/linear/trigger-on-issue-changed.definition.d.ts +5 -0
- package/src/providers/linear/trigger-on-issue-changed.definition.js +43 -0
- package/src/providers/linear/trigger-on-issue-changed.js +215 -0
- package/src/providers/linear_mcp/actions.d.ts +47 -0
- package/src/providers/linear_mcp/actions.js +102 -0
- package/src/providers/linear_mcp/endpoints.d.ts +3 -0
- package/src/providers/linear_mcp/endpoints.js +3 -0
- package/src/providers/linear_mcp/executors.d.ts +3 -0
- package/src/providers/linear_mcp/executors.js +9 -0
- package/src/providers/linear_mcp/runtime-mcp.d.ts +15 -0
- package/src/providers/linear_mcp/runtime-mcp.js +238 -0
- package/src/providers/lingxing_mcp/runtime.js +1 -1
- package/src/providers/mcdonalds_cn_mcp/runtime.js +1 -1
- package/src/providers/metabase/mcp-runtime.js +1 -1
- package/src/providers/moneyforward_mcp/executors.d.ts +3 -0
- package/src/providers/moneyforward_mcp/executors.js +11 -0
- package/src/providers/moneyforward_mcp/manifest.d.ts +31 -0
- package/src/providers/moneyforward_mcp/manifest.js +204 -0
- package/src/providers/moneyforward_mcp/runtime.d.ts +18 -0
- package/src/providers/moneyforward_mcp/runtime.js +296 -0
- package/src/providers/notion/executors.d.ts +3 -0
- package/src/providers/notion/executors.js +41 -3
- package/src/providers/notion/trigger-on-database-page-event.d.ts +2 -0
- package/src/providers/notion/trigger-on-database-page-event.definition.d.ts +4 -0
- package/src/providers/notion/trigger-on-database-page-event.definition.js +63 -0
- package/src/providers/notion/trigger-on-database-page-event.js +293 -0
- package/src/providers/notion_mcp/endpoints.d.ts +3 -0
- package/src/providers/notion_mcp/endpoints.js +3 -0
- package/src/providers/notion_mcp/executors.d.ts +3 -0
- package/src/providers/notion_mcp/executors.js +176 -0
- package/src/providers/notion_mcp/mcp-response.d.ts +86 -0
- package/src/providers/notion_mcp/mcp-response.js +314 -0
- package/src/providers/odoo/executors.d.ts +3 -0
- package/src/providers/odoo/executors.js +32 -0
- package/src/providers/odoo/runtime.d.ts +16 -0
- package/src/providers/odoo/runtime.js +140 -0
- package/src/providers/one_drive/executors.d.ts +3 -0
- package/src/providers/one_drive/executors.js +2 -0
- package/src/providers/one_drive/trigger-on-item-changed.d.ts +2 -0
- package/src/providers/one_drive/trigger-on-item-changed.definition.d.ts +4 -0
- package/src/providers/one_drive/trigger-on-item-changed.definition.js +63 -0
- package/src/providers/one_drive/trigger-on-item-changed.js +214 -0
- package/src/providers/outlook/executors.d.ts +3 -0
- package/src/providers/outlook/executors.js +29 -6
- package/src/providers/outlook/microsoft-graph.js +17 -6
- package/src/providers/outlook/trigger-on-message-received.d.ts +2 -0
- package/src/providers/outlook/trigger-on-message-received.definition.d.ts +4 -0
- package/src/providers/outlook/trigger-on-message-received.definition.js +93 -0
- package/src/providers/outlook/trigger-on-message-received.js +226 -0
- package/src/providers/outlook_calendar/executors.js +30 -7
- package/src/providers/patsnap_mcp/executors.js +2 -2
- package/src/providers/postiz/executors.d.ts +4 -0
- package/src/providers/postiz/executors.js +83 -0
- package/src/providers/provider-loader.d.ts +5 -0
- package/src/providers/provider-loader.js +4 -0
- package/src/providers/provider-runtime.d.ts +15 -0
- package/src/providers/provider-runtime.js +57 -4
- package/src/providers/proworkflow/executors.d.ts +4 -0
- package/src/providers/proworkflow/executors.js +135 -0
- package/src/providers/registry.generated.js +14 -0
- package/src/providers/scrape_creators/catalog.js +1 -1
- package/src/providers/scrape_creators/runtime.js +1 -1
- package/src/providers/sellersprite_mcp/executors.js +2 -2
- package/src/providers/sellersprite_mcp/official-actions.js +3 -2
- package/src/providers/sentry/runtime.js +6 -7
- package/src/providers/shopify/executors.d.ts +3 -0
- package/src/providers/shopify/executors.js +2 -0
- package/src/providers/shopify/trigger-on-shop-event.d.ts +2 -0
- package/src/providers/shopify/trigger-on-shop-event.definition.d.ts +4 -0
- package/src/providers/shopify/trigger-on-shop-event.definition.js +214 -0
- package/src/providers/shopify/trigger-on-shop-event.js +165 -0
- package/src/providers/slack/actions.js +52 -3
- package/src/providers/slack/executors.d.ts +3 -0
- package/src/providers/slack/executors.js +2 -0
- package/src/providers/slack/runtime.js +58 -21
- package/src/providers/slack/trigger-on-message-posted.d.ts +2 -0
- package/src/providers/slack/trigger-on-message-posted.definition.d.ts +4 -0
- package/src/providers/slack/trigger-on-message-posted.definition.js +80 -0
- package/src/providers/slack/trigger-on-message-posted.js +176 -0
- package/src/providers/slickdeals/runtime.js +1 -1
- package/src/providers/sorftime_mcp/executors.js +2 -2
- package/src/providers/spotify/runtime.js +15 -4
- package/src/providers/stripe/executors.d.ts +3 -0
- package/src/providers/stripe/executors.js +2 -0
- package/src/providers/stripe/trigger-on-event.d.ts +2 -0
- package/src/providers/stripe/trigger-on-event.definition.d.ts +4 -0
- package/src/providers/stripe/trigger-on-event.definition.js +43 -0
- package/src/providers/stripe/trigger-on-event.js +212 -0
- package/src/providers/telegram/executors.d.ts +3 -0
- package/src/providers/telegram/executors.js +2 -0
- package/src/providers/telegram/trigger-on-update.d.ts +2 -0
- package/src/providers/telegram/trigger-on-update.definition.d.ts +5 -0
- package/src/providers/telegram/trigger-on-update.definition.js +78 -0
- package/src/providers/telegram/trigger-on-update.js +141 -0
- package/src/providers/tikhub/bounded-response.d.ts +1 -1
- package/src/providers/tikhub/bounded-response.js +8 -34
- package/src/providers/tikhub/endpoint-catalog.js +1 -1
- package/src/providers/tikhub/runtime.js +2 -2
- package/src/providers/tongdaxin/executors.js +79 -15
- package/src/providers/uspto/executors.js +1 -1
- package/src/providers/waffo/executors.js +1 -1
- package/src/providers/waffo/runtime.js +1 -1
- package/src/providers/wecom_mcp/runtime.js +1 -1
- package/src/providers/weixin_store/access-token.d.ts +2 -1
- package/src/providers/weixin_store/access-token.js +15 -4
- package/src/providers/weixin_store/executors.js +97 -12
- package/src/providers/wisburg/executors.d.ts +4 -0
- package/src/providers/wisburg/executors.js +13 -0
- package/src/providers/wisburg/runtime.d.ts +12 -0
- package/src/providers/wisburg/runtime.js +133 -0
- package/src/providers/woocommerce/executors.d.ts +3 -0
- package/src/providers/woocommerce/executors.js +2 -0
- package/src/providers/woocommerce/trigger-on-store-event.d.ts +2 -0
- package/src/providers/woocommerce/trigger-on-store-event.definition.d.ts +4 -0
- package/src/providers/woocommerce/trigger-on-store-event.definition.js +55 -0
- package/src/providers/woocommerce/trigger-on-store-event.js +179 -0
- package/src/providers/xydc_mcp/executors.js +2 -2
- package/src/providers/youtube/executors.js +1 -1
- package/src/providers/youtube/runtime.js +1 -1
- package/src/providers/zendesk/executors.d.ts +3 -0
- package/src/providers/zendesk/executors.js +2 -0
- package/src/providers/zendesk/trigger-on-event.d.ts +2 -0
- package/src/providers/zendesk/trigger-on-event.definition.d.ts +5 -0
- package/src/providers/zendesk/trigger-on-event.definition.js +101 -0
- package/src/providers/zendesk/trigger-on-event.js +188 -0
- package/src/providers/zerotier/executors.d.ts +9 -0
- package/src/providers/zerotier/executors.js +629 -0
- package/src/providers/zerotier/runtime.d.ts +54 -0
- package/src/providers/zerotier/runtime.js +207 -0
- package/src/saas/saas-cleanup-service.d.ts +26 -0
- package/src/saas/saas-cleanup-service.js +124 -0
- package/src/saas/saas-client.d.ts +86 -0
- package/src/saas/saas-client.js +369 -0
- package/src/saas/saas-execution-service.d.ts +15 -0
- package/src/saas/saas-execution-service.js +21 -0
- package/src/saas/saas-oauth-service.d.ts +25 -0
- package/src/saas/saas-oauth-service.js +197 -0
- package/src/saas/saas-project-service.d.ts +61 -0
- package/src/saas/saas-project-service.js +211 -0
- package/src/server/actions/action-idempotency.d.ts +1 -0
- package/src/server/actions/action-idempotency.js +1 -0
- package/src/server/actions/action-runner.d.ts +7 -0
- package/src/server/actions/action-runner.js +43 -7
- package/src/server/actions/run-log-summary.js +9 -0
- package/src/server/api/auth.d.ts +1 -0
- package/src/server/api/auth.js +13 -2
- package/src/server/api/cache-policy.js +4 -1
- package/src/server/api/connection-input.d.ts +7 -1
- package/src/server/api/connection-input.js +7 -1
- package/src/server/api/connection-routes.d.ts +3 -1
- package/src/server/api/connection-routes.js +21 -3
- package/src/server/api/http-utils.d.ts +4 -3
- package/src/server/api/oauth-completion-page.d.ts +124 -0
- package/src/server/api/oauth-completion-page.js +113 -18
- package/src/server/api/openapi.js +123 -15
- package/src/server/api/policy-input.js +6 -0
- package/src/server/api/runtime-api.d.ts +18 -3
- package/src/server/api/runtime-api.js +36 -5
- package/src/server/api/saas-completion-page.d.ts +2 -0
- package/src/server/api/saas-completion-page.js +103 -0
- package/src/server/connect-app.d.ts +5 -0
- package/src/server/connect-app.js +50 -0
- package/src/server/connect-server.d.ts +12 -0
- package/src/server/connect-server.js +157 -15
- package/src/server/connector-runtime.d.ts +3 -1
- package/src/server/connector-runtime.js +5 -2
- package/src/server/files/transit-files.js +16 -7
- package/src/server/proxy/proxy-runner.d.ts +5 -1
- package/src/server/proxy/proxy-runner.js +72 -26
- package/src/server/storage/connection-request-store.d.ts +41 -1
- package/src/server/storage/connection-request-store.js +245 -20
- package/src/server/storage/connection-store.d.ts +16 -0
- package/src/server/storage/connection-store.js +119 -0
- package/src/server/storage/node-runtime-database.js +3 -3
- package/src/server/storage/{postgres-migrations.d.ts → postgres/migrations.d.ts} +2 -2
- package/src/server/storage/{postgres-migrations.js → postgres/migrations.js} +1 -1
- package/src/server/storage/postgres/runtime-store.d.ts +43 -0
- package/src/server/storage/{postgres-runtime-store.js → postgres/runtime-store.js} +59 -94
- package/src/server/storage/runtime-database.d.ts +4 -0
- package/src/server/storage/runtime-sql.d.ts +1 -1
- package/src/server/storage/runtime-sql.js +2 -1
- package/src/server/storage/runtime-store.d.ts +1 -0
- package/src/server/storage/runtime-token-service.d.ts +2 -0
- package/src/server/storage/runtime-token-service.js +3 -0
- package/src/server/storage/saas-project-store.d.ts +77 -0
- package/src/server/storage/saas-project-store.js +273 -0
- package/src/server/storage/{sqlite-runtime-store.d.ts → sqlite/runtime-store.d.ts} +21 -25
- package/src/server/storage/{sqlite-runtime-store.js → sqlite/runtime-store.js} +100 -115
- package/src/server/storage/trigger-store.d.ts +16 -0
- package/src/server/storage/trigger-store.js +96 -0
- package/src/triggers/common/config.d.ts +2 -0
- package/src/triggers/common/config.js +17 -0
- package/src/triggers/common/configOptions.d.ts +13 -0
- package/src/triggers/common/configOptions.js +1 -0
- package/src/triggers/common/encoding.d.ts +3 -0
- package/src/triggers/common/encoding.js +19 -0
- package/src/triggers/common/integration.d.ts +115 -0
- package/src/triggers/common/integration.js +31 -0
- package/src/triggers/common/json.d.ts +6 -0
- package/src/triggers/common/json.js +91 -0
- package/src/triggers/common/poll.d.ts +41 -0
- package/src/triggers/common/poll.js +15 -0
- package/src/triggers/common/proxy.d.ts +14 -0
- package/src/triggers/common/proxy.js +1 -0
- package/src/triggers/common/types.d.ts +42 -0
- package/src/triggers/common/types.js +1 -0
- package/src/triggers/maintenance.d.ts +40 -0
- package/src/triggers/maintenance.js +120 -0
- package/src/triggers/metadata.d.ts +8 -0
- package/src/triggers/metadata.js +1 -0
- package/src/triggers/request.d.ts +33 -0
- package/src/triggers/request.js +52 -0
- package/src/triggers/resources.d.ts +12 -0
- package/src/triggers/resources.js +121 -0
- package/src/triggers/signature.d.ts +4 -0
- package/src/triggers/signature.js +48 -0
- package/src/triggers/store.d.ts +29 -0
- package/src/triggers/store.js +1 -0
- package/src/triggers/subscriptions.d.ts +22 -0
- package/src/triggers/subscriptions.js +220 -0
- package/src/triggers/trigger-runner.d.ts +34 -0
- package/src/triggers/trigger-runner.js +169 -0
- package/src/providers/sentry/scopes.d.ts +0 -1
- package/src/providers/sentry/scopes.js +0 -7
- package/src/server/storage/postgres-runtime-store.d.ts +0 -39
- /package/src/providers/{cloudflare-current-user.d.ts → cloudflare_dns/runtime-user.d.ts} +0 -0
|
@@ -0,0 +1,2967 @@
|
|
|
1
|
+
{
|
|
2
|
+
"service": "futunn",
|
|
3
|
+
"displayName": "Futunn",
|
|
4
|
+
"description": "Read Futunn market data, research, account positions, orders, and execution fills.",
|
|
5
|
+
"categories": [
|
|
6
|
+
"Finance",
|
|
7
|
+
"Data"
|
|
8
|
+
],
|
|
9
|
+
"authTypes": [
|
|
10
|
+
"oauth2"
|
|
11
|
+
],
|
|
12
|
+
"auth": [
|
|
13
|
+
{
|
|
14
|
+
"type": "oauth2",
|
|
15
|
+
"authorizationUrl": "https://webapi.futunn.com/oauth2/authorize/confirm",
|
|
16
|
+
"tokenUrl": "https://webapi.futunn.com/oauth2/token",
|
|
17
|
+
"scopes": [
|
|
18
|
+
"quote:read",
|
|
19
|
+
"trade:read"
|
|
20
|
+
],
|
|
21
|
+
"tokenEndpointAuthMethod": "none",
|
|
22
|
+
"pkce": {
|
|
23
|
+
"method": "S256"
|
|
24
|
+
},
|
|
25
|
+
"authorizationOptions": [
|
|
26
|
+
{
|
|
27
|
+
"id": "quote:read",
|
|
28
|
+
"label": "Market data",
|
|
29
|
+
"description": "Read market data, financial research, and content search results.",
|
|
30
|
+
"required": true,
|
|
31
|
+
"defaultSelected": true,
|
|
32
|
+
"risk": "standard"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"id": "trade:read",
|
|
36
|
+
"label": "Account information",
|
|
37
|
+
"description": "Read authorized accounts, balances, positions, orders, and execution fills.",
|
|
38
|
+
"required": false,
|
|
39
|
+
"defaultSelected": true,
|
|
40
|
+
"risk": "sensitive"
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"clientSetup": {
|
|
44
|
+
"docsUrl": "https://open.futunn.com/zh-cn/api/overview/getting-started",
|
|
45
|
+
"steps": [
|
|
46
|
+
"Register an OAuth client at https://webapi.futunn.com/oauth2/register using the official getting-started guide.",
|
|
47
|
+
"Include this runtime's callback URL in redirect_uris and set token_endpoint_auth_method to none.",
|
|
48
|
+
"Paste the application's Client ID. Futunn PKCE applications do not require a client secret."
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"homepageUrl": "https://open.futunn.com",
|
|
54
|
+
"actions": [
|
|
55
|
+
{
|
|
56
|
+
"id": "futunn.get_account_funds",
|
|
57
|
+
"service": "futunn",
|
|
58
|
+
"name": "get_account_funds",
|
|
59
|
+
"description": "Get account assets, cash, buying power and margin balances in the requested currency.",
|
|
60
|
+
"operationType": "read",
|
|
61
|
+
"requiredScopes": [
|
|
62
|
+
"trade:read"
|
|
63
|
+
],
|
|
64
|
+
"providerPermissions": [],
|
|
65
|
+
"inputSchema": {
|
|
66
|
+
"type": "object",
|
|
67
|
+
"properties": {
|
|
68
|
+
"accountId": {
|
|
69
|
+
"type": "string",
|
|
70
|
+
"minLength": 1,
|
|
71
|
+
"description": "Trading account ID returned by list_accounts, kept as a decimal string.",
|
|
72
|
+
"pattern": "^[0-9]+$"
|
|
73
|
+
},
|
|
74
|
+
"currency": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"minLength": 1,
|
|
77
|
+
"description": "Display currency, for example USD or HKD; ignored by account types that do not support conversion."
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"additionalProperties": false,
|
|
81
|
+
"required": [
|
|
82
|
+
"accountId",
|
|
83
|
+
"currency"
|
|
84
|
+
],
|
|
85
|
+
"description": "Account funds query."
|
|
86
|
+
},
|
|
87
|
+
"outputSchema": {
|
|
88
|
+
"type": "object",
|
|
89
|
+
"properties": {
|
|
90
|
+
"funds": {
|
|
91
|
+
"type": "object",
|
|
92
|
+
"properties": {
|
|
93
|
+
"total_assets": {
|
|
94
|
+
"type": "string",
|
|
95
|
+
"description": "Total net assets."
|
|
96
|
+
},
|
|
97
|
+
"cash": {
|
|
98
|
+
"type": "string",
|
|
99
|
+
"description": "Cash balance."
|
|
100
|
+
},
|
|
101
|
+
"power": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"description": "Maximum buying power."
|
|
104
|
+
},
|
|
105
|
+
"currency": {
|
|
106
|
+
"type": "string",
|
|
107
|
+
"description": "Display currency."
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"additionalProperties": true,
|
|
111
|
+
"description": "Account balances; monetary amounts retain upstream decimal strings."
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"additionalProperties": false,
|
|
115
|
+
"required": [
|
|
116
|
+
"funds"
|
|
117
|
+
],
|
|
118
|
+
"description": "Account fund balances."
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"id": "futunn.get_capital_distribution",
|
|
123
|
+
"service": "futunn",
|
|
124
|
+
"name": "get_capital_distribution",
|
|
125
|
+
"description": "Get current-day capital inflow and outflow distribution by order size.",
|
|
126
|
+
"operationType": "read",
|
|
127
|
+
"requiredScopes": [
|
|
128
|
+
"quote:read"
|
|
129
|
+
],
|
|
130
|
+
"providerPermissions": [],
|
|
131
|
+
"inputSchema": {
|
|
132
|
+
"type": "object",
|
|
133
|
+
"properties": {
|
|
134
|
+
"symbol": {
|
|
135
|
+
"type": "string",
|
|
136
|
+
"minLength": 1,
|
|
137
|
+
"description": "Security code including market prefix, for example HK.00700."
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"additionalProperties": false,
|
|
141
|
+
"required": [
|
|
142
|
+
"symbol"
|
|
143
|
+
],
|
|
144
|
+
"description": "Capital distribution query."
|
|
145
|
+
},
|
|
146
|
+
"outputSchema": {
|
|
147
|
+
"type": "object",
|
|
148
|
+
"properties": {
|
|
149
|
+
"distribution": {
|
|
150
|
+
"anyOf": [
|
|
151
|
+
{
|
|
152
|
+
"type": "object",
|
|
153
|
+
"properties": {
|
|
154
|
+
"capital_in_super": {
|
|
155
|
+
"type": "number",
|
|
156
|
+
"description": "Inflow for super orders."
|
|
157
|
+
},
|
|
158
|
+
"capital_in_big": {
|
|
159
|
+
"type": "number",
|
|
160
|
+
"description": "Inflow for big orders."
|
|
161
|
+
},
|
|
162
|
+
"capital_in_mid": {
|
|
163
|
+
"type": "number",
|
|
164
|
+
"description": "Inflow for mid orders."
|
|
165
|
+
},
|
|
166
|
+
"capital_in_small": {
|
|
167
|
+
"type": "number",
|
|
168
|
+
"description": "Inflow for small orders."
|
|
169
|
+
},
|
|
170
|
+
"capital_out_super": {
|
|
171
|
+
"type": "number",
|
|
172
|
+
"description": "Outflow for super orders."
|
|
173
|
+
},
|
|
174
|
+
"capital_out_big": {
|
|
175
|
+
"type": "number",
|
|
176
|
+
"description": "Outflow for big orders."
|
|
177
|
+
},
|
|
178
|
+
"capital_out_mid": {
|
|
179
|
+
"type": "number",
|
|
180
|
+
"description": "Outflow for mid orders."
|
|
181
|
+
},
|
|
182
|
+
"capital_out_small": {
|
|
183
|
+
"type": "number",
|
|
184
|
+
"description": "Outflow for small orders."
|
|
185
|
+
},
|
|
186
|
+
"update_time": {
|
|
187
|
+
"type": "integer",
|
|
188
|
+
"description": "Update timestamp in milliseconds."
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
"additionalProperties": true,
|
|
192
|
+
"description": "Cumulative intraday inflow and outflow in local currency."
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"type": "null"
|
|
196
|
+
}
|
|
197
|
+
]
|
|
198
|
+
},
|
|
199
|
+
"noData": {
|
|
200
|
+
"type": "boolean",
|
|
201
|
+
"description": "Whether the provider explicitly reported no_data for a valid security."
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
"additionalProperties": false,
|
|
205
|
+
"required": [
|
|
206
|
+
"distribution",
|
|
207
|
+
"noData"
|
|
208
|
+
],
|
|
209
|
+
"description": "Capital distribution results."
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"id": "futunn.get_capital_flow",
|
|
214
|
+
"service": "futunn",
|
|
215
|
+
"name": "get_capital_flow",
|
|
216
|
+
"description": "Get intraday capital flow by order size and trading session.",
|
|
217
|
+
"operationType": "read",
|
|
218
|
+
"requiredScopes": [
|
|
219
|
+
"quote:read"
|
|
220
|
+
],
|
|
221
|
+
"providerPermissions": [],
|
|
222
|
+
"inputSchema": {
|
|
223
|
+
"type": "object",
|
|
224
|
+
"properties": {
|
|
225
|
+
"symbol": {
|
|
226
|
+
"type": "string",
|
|
227
|
+
"minLength": 1,
|
|
228
|
+
"description": "Security code including market prefix, for example HK.00700."
|
|
229
|
+
},
|
|
230
|
+
"section": {
|
|
231
|
+
"type": "string",
|
|
232
|
+
"enum": [
|
|
233
|
+
"NORMAL",
|
|
234
|
+
"FULL",
|
|
235
|
+
"PREMARKET",
|
|
236
|
+
"AFTERHOURS"
|
|
237
|
+
],
|
|
238
|
+
"description": "Trading session; default NORMAL."
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
"additionalProperties": false,
|
|
242
|
+
"required": [
|
|
243
|
+
"symbol"
|
|
244
|
+
],
|
|
245
|
+
"description": "Intraday capital flow query."
|
|
246
|
+
},
|
|
247
|
+
"outputSchema": {
|
|
248
|
+
"type": "object",
|
|
249
|
+
"properties": {
|
|
250
|
+
"flows": {
|
|
251
|
+
"type": "array",
|
|
252
|
+
"items": {
|
|
253
|
+
"type": "object",
|
|
254
|
+
"properties": {
|
|
255
|
+
"capital_flow_item_time": {
|
|
256
|
+
"type": "integer",
|
|
257
|
+
"description": "Observation timestamp in milliseconds."
|
|
258
|
+
},
|
|
259
|
+
"in_flow": {
|
|
260
|
+
"type": "number",
|
|
261
|
+
"description": "Net inflow in the security local currency; negative means outflow."
|
|
262
|
+
},
|
|
263
|
+
"super_in_flow": {
|
|
264
|
+
"type": "number",
|
|
265
|
+
"description": "Net inflow from super-large orders."
|
|
266
|
+
},
|
|
267
|
+
"big_in_flow": {
|
|
268
|
+
"type": "number",
|
|
269
|
+
"description": "Net inflow from large orders."
|
|
270
|
+
},
|
|
271
|
+
"mid_in_flow": {
|
|
272
|
+
"type": "number",
|
|
273
|
+
"description": "Net inflow from medium orders."
|
|
274
|
+
},
|
|
275
|
+
"sml_in_flow": {
|
|
276
|
+
"type": "number",
|
|
277
|
+
"description": "Net inflow from small orders."
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
"additionalProperties": true,
|
|
281
|
+
"description": "Capital flow observation."
|
|
282
|
+
},
|
|
283
|
+
"description": "Time-ordered capital flow observations."
|
|
284
|
+
},
|
|
285
|
+
"lastValidTime": {
|
|
286
|
+
"anyOf": [
|
|
287
|
+
{
|
|
288
|
+
"type": "integer",
|
|
289
|
+
"description": "Last valid data timestamp in milliseconds."
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"type": "null"
|
|
293
|
+
}
|
|
294
|
+
]
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
"additionalProperties": false,
|
|
298
|
+
"required": [
|
|
299
|
+
"flows",
|
|
300
|
+
"lastValidTime"
|
|
301
|
+
],
|
|
302
|
+
"description": "Intraday capital flow results."
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"id": "futunn.get_capital_flow_history",
|
|
307
|
+
"service": "futunn",
|
|
308
|
+
"name": "get_capital_flow_history",
|
|
309
|
+
"description": "Get daily, weekly or monthly capital flows; move end earlier to retrieve preceding data.",
|
|
310
|
+
"operationType": "read",
|
|
311
|
+
"requiredScopes": [
|
|
312
|
+
"quote:read"
|
|
313
|
+
],
|
|
314
|
+
"providerPermissions": [],
|
|
315
|
+
"inputSchema": {
|
|
316
|
+
"type": "object",
|
|
317
|
+
"properties": {
|
|
318
|
+
"symbol": {
|
|
319
|
+
"type": "string",
|
|
320
|
+
"minLength": 1,
|
|
321
|
+
"description": "Security code including market prefix, for example HK.00700."
|
|
322
|
+
},
|
|
323
|
+
"periodType": {
|
|
324
|
+
"type": "string",
|
|
325
|
+
"enum": [
|
|
326
|
+
"DAY",
|
|
327
|
+
"WEEK",
|
|
328
|
+
"MONTH"
|
|
329
|
+
],
|
|
330
|
+
"description": "Aggregation period; default DAY."
|
|
331
|
+
},
|
|
332
|
+
"start": {
|
|
333
|
+
"type": "string",
|
|
334
|
+
"description": "Inclusive date in YYYY-MM-DD format.",
|
|
335
|
+
"format": "date"
|
|
336
|
+
},
|
|
337
|
+
"end": {
|
|
338
|
+
"type": "string",
|
|
339
|
+
"description": "Inclusive date in YYYY-MM-DD format.",
|
|
340
|
+
"format": "date"
|
|
341
|
+
},
|
|
342
|
+
"count": {
|
|
343
|
+
"type": "integer",
|
|
344
|
+
"minimum": 1,
|
|
345
|
+
"maximum": 1000,
|
|
346
|
+
"description": "Maximum observations; default 365, maximum 1000."
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
"additionalProperties": false,
|
|
350
|
+
"required": [
|
|
351
|
+
"symbol"
|
|
352
|
+
],
|
|
353
|
+
"description": "Historical capital flow query."
|
|
354
|
+
},
|
|
355
|
+
"outputSchema": {
|
|
356
|
+
"type": "object",
|
|
357
|
+
"properties": {
|
|
358
|
+
"flows": {
|
|
359
|
+
"type": "array",
|
|
360
|
+
"items": {
|
|
361
|
+
"type": "object",
|
|
362
|
+
"properties": {
|
|
363
|
+
"capital_flow_item_time": {
|
|
364
|
+
"type": "integer",
|
|
365
|
+
"description": "Observation timestamp in milliseconds."
|
|
366
|
+
},
|
|
367
|
+
"in_flow": {
|
|
368
|
+
"type": "number",
|
|
369
|
+
"description": "Net inflow in the security local currency; negative means outflow."
|
|
370
|
+
},
|
|
371
|
+
"super_in_flow": {
|
|
372
|
+
"type": "number",
|
|
373
|
+
"description": "Net inflow from super-large orders."
|
|
374
|
+
},
|
|
375
|
+
"big_in_flow": {
|
|
376
|
+
"type": "number",
|
|
377
|
+
"description": "Net inflow from large orders."
|
|
378
|
+
},
|
|
379
|
+
"mid_in_flow": {
|
|
380
|
+
"type": "number",
|
|
381
|
+
"description": "Net inflow from medium orders."
|
|
382
|
+
},
|
|
383
|
+
"sml_in_flow": {
|
|
384
|
+
"type": "number",
|
|
385
|
+
"description": "Net inflow from small orders."
|
|
386
|
+
}
|
|
387
|
+
},
|
|
388
|
+
"additionalProperties": true,
|
|
389
|
+
"description": "Capital flow observation."
|
|
390
|
+
},
|
|
391
|
+
"description": "Time-ordered capital flow observations."
|
|
392
|
+
},
|
|
393
|
+
"pagination": {
|
|
394
|
+
"anyOf": [
|
|
395
|
+
{
|
|
396
|
+
"type": "object",
|
|
397
|
+
"properties": {
|
|
398
|
+
"has_more": {
|
|
399
|
+
"type": "boolean",
|
|
400
|
+
"description": "Whether more results are available."
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
"additionalProperties": true,
|
|
404
|
+
"description": "Pagination metadata from the response envelope; null when omitted."
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"type": "null"
|
|
408
|
+
}
|
|
409
|
+
]
|
|
410
|
+
}
|
|
411
|
+
},
|
|
412
|
+
"additionalProperties": false,
|
|
413
|
+
"required": [
|
|
414
|
+
"flows",
|
|
415
|
+
"pagination"
|
|
416
|
+
],
|
|
417
|
+
"description": "Historical capital flows and pagination."
|
|
418
|
+
}
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
"id": "futunn.get_financial_statements",
|
|
422
|
+
"service": "futunn",
|
|
423
|
+
"name": "get_financial_statements",
|
|
424
|
+
"description": "Get financial statements or key metrics by reporting period.",
|
|
425
|
+
"operationType": "read",
|
|
426
|
+
"requiredScopes": [
|
|
427
|
+
"quote:read"
|
|
428
|
+
],
|
|
429
|
+
"providerPermissions": [],
|
|
430
|
+
"inputSchema": {
|
|
431
|
+
"type": "object",
|
|
432
|
+
"properties": {
|
|
433
|
+
"symbol": {
|
|
434
|
+
"type": "string",
|
|
435
|
+
"minLength": 1,
|
|
436
|
+
"description": "Security code including market prefix, for example HK.00700."
|
|
437
|
+
},
|
|
438
|
+
"statementType": {
|
|
439
|
+
"type": "integer",
|
|
440
|
+
"description": "1=income statement, 2=balance sheet, 3=cash flow, 4=key metrics; default 1.",
|
|
441
|
+
"enum": [
|
|
442
|
+
1,
|
|
443
|
+
2,
|
|
444
|
+
3,
|
|
445
|
+
4
|
|
446
|
+
]
|
|
447
|
+
},
|
|
448
|
+
"financialType": {
|
|
449
|
+
"type": "integer",
|
|
450
|
+
"description": "Financial period code: 1=Q1, 2=H1, 3=Q3, 4=Q4, 5=cumulative H1, 6=cumulative Q3, 7=annual, 10=latest; defaults vary by endpoint."
|
|
451
|
+
},
|
|
452
|
+
"currencyCode": {
|
|
453
|
+
"type": "string",
|
|
454
|
+
"description": "Report currency code, for example USD or CNY; omit for the native currency."
|
|
455
|
+
},
|
|
456
|
+
"nextKey": {
|
|
457
|
+
"type": "string",
|
|
458
|
+
"description": "Opaque next-page cursor; omit for the first page."
|
|
459
|
+
},
|
|
460
|
+
"limit": {
|
|
461
|
+
"type": "integer",
|
|
462
|
+
"minimum": 1,
|
|
463
|
+
"maximum": 50,
|
|
464
|
+
"description": "Page size; default 10, maximum 50."
|
|
465
|
+
}
|
|
466
|
+
},
|
|
467
|
+
"additionalProperties": false,
|
|
468
|
+
"required": [
|
|
469
|
+
"symbol"
|
|
470
|
+
],
|
|
471
|
+
"description": "Financial statement query."
|
|
472
|
+
},
|
|
473
|
+
"outputSchema": {
|
|
474
|
+
"type": "object",
|
|
475
|
+
"properties": {
|
|
476
|
+
"reports": {
|
|
477
|
+
"type": "array",
|
|
478
|
+
"items": {
|
|
479
|
+
"type": "object",
|
|
480
|
+
"properties": {
|
|
481
|
+
"period_text": {
|
|
482
|
+
"type": "string",
|
|
483
|
+
"description": "Financial reporting period."
|
|
484
|
+
},
|
|
485
|
+
"currency_code": {
|
|
486
|
+
"type": "string",
|
|
487
|
+
"description": "Report currency code, for example USD or CNY; omit for the native currency."
|
|
488
|
+
},
|
|
489
|
+
"item_list": {
|
|
490
|
+
"type": "array",
|
|
491
|
+
"items": {
|
|
492
|
+
"type": "object",
|
|
493
|
+
"properties": {
|
|
494
|
+
"field_id": {
|
|
495
|
+
"type": "integer",
|
|
496
|
+
"description": "Financial field ID."
|
|
497
|
+
},
|
|
498
|
+
"display_name": {
|
|
499
|
+
"type": "string",
|
|
500
|
+
"description": "Financial field display name."
|
|
501
|
+
},
|
|
502
|
+
"data": {
|
|
503
|
+
"type": "number",
|
|
504
|
+
"description": "Reported financial value."
|
|
505
|
+
},
|
|
506
|
+
"value_type": {
|
|
507
|
+
"type": "string",
|
|
508
|
+
"description": "amount for monetary values or percent for percentages."
|
|
509
|
+
},
|
|
510
|
+
"yoy": {
|
|
511
|
+
"type": "number",
|
|
512
|
+
"description": "Year-over-year percentage change."
|
|
513
|
+
},
|
|
514
|
+
"qoq": {
|
|
515
|
+
"type": "number",
|
|
516
|
+
"description": "Quarter-over-quarter percentage change."
|
|
517
|
+
}
|
|
518
|
+
},
|
|
519
|
+
"additionalProperties": true,
|
|
520
|
+
"description": "Financial statement field."
|
|
521
|
+
},
|
|
522
|
+
"description": "Financial statement fields."
|
|
523
|
+
}
|
|
524
|
+
},
|
|
525
|
+
"additionalProperties": true,
|
|
526
|
+
"description": "Financial report and original accounting metadata."
|
|
527
|
+
},
|
|
528
|
+
"description": "Financial reports; empty when no data is available."
|
|
529
|
+
},
|
|
530
|
+
"pagination": {
|
|
531
|
+
"anyOf": [
|
|
532
|
+
{
|
|
533
|
+
"type": "object",
|
|
534
|
+
"properties": {
|
|
535
|
+
"has_more": {
|
|
536
|
+
"type": "boolean",
|
|
537
|
+
"description": "Whether more results are available."
|
|
538
|
+
},
|
|
539
|
+
"next_key": {
|
|
540
|
+
"type": "string",
|
|
541
|
+
"description": "Opaque next-page cursor; omit for the first page."
|
|
542
|
+
}
|
|
543
|
+
},
|
|
544
|
+
"additionalProperties": true,
|
|
545
|
+
"description": "Pagination metadata from the response envelope; null when omitted."
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
"type": "null"
|
|
549
|
+
}
|
|
550
|
+
]
|
|
551
|
+
},
|
|
552
|
+
"noData": {
|
|
553
|
+
"type": "boolean",
|
|
554
|
+
"description": "Whether the provider explicitly reported no_data for a valid security."
|
|
555
|
+
}
|
|
556
|
+
},
|
|
557
|
+
"additionalProperties": false,
|
|
558
|
+
"required": [
|
|
559
|
+
"reports",
|
|
560
|
+
"pagination",
|
|
561
|
+
"noData"
|
|
562
|
+
],
|
|
563
|
+
"description": "Financial reports and pagination."
|
|
564
|
+
}
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
"id": "futunn.get_history_kline",
|
|
568
|
+
"service": "futunn",
|
|
569
|
+
"name": "get_history_kline",
|
|
570
|
+
"description": "Get a page of historical candlesticks, retaining the next-page timestamp and volume precision.",
|
|
571
|
+
"operationType": "read",
|
|
572
|
+
"requiredScopes": [
|
|
573
|
+
"quote:read"
|
|
574
|
+
],
|
|
575
|
+
"providerPermissions": [],
|
|
576
|
+
"inputSchema": {
|
|
577
|
+
"type": "object",
|
|
578
|
+
"properties": {
|
|
579
|
+
"symbol": {
|
|
580
|
+
"type": "string",
|
|
581
|
+
"minLength": 1,
|
|
582
|
+
"description": "Security code with market prefix, for example US.AAPL or HK.00700."
|
|
583
|
+
},
|
|
584
|
+
"start": {
|
|
585
|
+
"type": "string",
|
|
586
|
+
"description": "Date in YYYY-MM-DD format in the market timezone.",
|
|
587
|
+
"format": "date"
|
|
588
|
+
},
|
|
589
|
+
"end": {
|
|
590
|
+
"type": "string",
|
|
591
|
+
"minLength": 1,
|
|
592
|
+
"description": "End date in YYYY-MM-DD format, or the previous nextTime converted to a string for pagination."
|
|
593
|
+
},
|
|
594
|
+
"ktype": {
|
|
595
|
+
"type": "integer",
|
|
596
|
+
"description": "Candlestick interval: 1=1min, 2=day, 3=week, 4=month, 5=year, 6=5min, 7=15min, 8=30min, 9=60min. Default 2.",
|
|
597
|
+
"enum": [
|
|
598
|
+
1,
|
|
599
|
+
2,
|
|
600
|
+
3,
|
|
601
|
+
4,
|
|
602
|
+
5,
|
|
603
|
+
6,
|
|
604
|
+
7,
|
|
605
|
+
8,
|
|
606
|
+
9
|
|
607
|
+
]
|
|
608
|
+
},
|
|
609
|
+
"autype": {
|
|
610
|
+
"type": "integer",
|
|
611
|
+
"description": "Price adjustment: 0=none, 1=forward (default), 2=backward.",
|
|
612
|
+
"enum": [
|
|
613
|
+
0,
|
|
614
|
+
1,
|
|
615
|
+
2
|
|
616
|
+
]
|
|
617
|
+
},
|
|
618
|
+
"num": {
|
|
619
|
+
"type": "integer",
|
|
620
|
+
"minimum": 1,
|
|
621
|
+
"maximum": 370,
|
|
622
|
+
"description": "Number of bars requested; default and maximum 370."
|
|
623
|
+
},
|
|
624
|
+
"extendedTime": {
|
|
625
|
+
"type": "integer",
|
|
626
|
+
"description": "Extended session: 0=default, 1=US pre/after market, 2=US overnight.",
|
|
627
|
+
"enum": [
|
|
628
|
+
0,
|
|
629
|
+
1,
|
|
630
|
+
2
|
|
631
|
+
]
|
|
632
|
+
}
|
|
633
|
+
},
|
|
634
|
+
"additionalProperties": false,
|
|
635
|
+
"required": [
|
|
636
|
+
"symbol",
|
|
637
|
+
"end"
|
|
638
|
+
],
|
|
639
|
+
"description": "Historical candlestick query."
|
|
640
|
+
},
|
|
641
|
+
"outputSchema": {
|
|
642
|
+
"type": "object",
|
|
643
|
+
"properties": {
|
|
644
|
+
"bars": {
|
|
645
|
+
"type": "array",
|
|
646
|
+
"items": {
|
|
647
|
+
"type": "object",
|
|
648
|
+
"properties": {
|
|
649
|
+
"time_key": {
|
|
650
|
+
"type": "integer",
|
|
651
|
+
"description": "Candlestick timestamp in milliseconds."
|
|
652
|
+
},
|
|
653
|
+
"open": {
|
|
654
|
+
"type": "number",
|
|
655
|
+
"description": "Opening price."
|
|
656
|
+
},
|
|
657
|
+
"close": {
|
|
658
|
+
"type": "number",
|
|
659
|
+
"description": "Closing price."
|
|
660
|
+
},
|
|
661
|
+
"high": {
|
|
662
|
+
"type": "number",
|
|
663
|
+
"description": "Highest price."
|
|
664
|
+
},
|
|
665
|
+
"low": {
|
|
666
|
+
"type": "number",
|
|
667
|
+
"description": "Lowest price."
|
|
668
|
+
},
|
|
669
|
+
"volume": {
|
|
670
|
+
"type": "number",
|
|
671
|
+
"description": "Trading volume before applying volumePrecision."
|
|
672
|
+
}
|
|
673
|
+
},
|
|
674
|
+
"additionalProperties": true,
|
|
675
|
+
"description": "Historical candlestick with additional provider fields."
|
|
676
|
+
},
|
|
677
|
+
"description": "Historical candlesticks in upstream order."
|
|
678
|
+
},
|
|
679
|
+
"nextTime": {
|
|
680
|
+
"anyOf": [
|
|
681
|
+
{
|
|
682
|
+
"type": "integer",
|
|
683
|
+
"description": "Next page end timestamp in milliseconds, or null when absent."
|
|
684
|
+
},
|
|
685
|
+
{
|
|
686
|
+
"type": "null"
|
|
687
|
+
}
|
|
688
|
+
]
|
|
689
|
+
},
|
|
690
|
+
"volumePrecision": {
|
|
691
|
+
"anyOf": [
|
|
692
|
+
{
|
|
693
|
+
"type": "integer",
|
|
694
|
+
"description": "Divide bar volumes by 10 to this power; null when the provider omits precision."
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
"type": "null"
|
|
698
|
+
}
|
|
699
|
+
]
|
|
700
|
+
}
|
|
701
|
+
},
|
|
702
|
+
"additionalProperties": false,
|
|
703
|
+
"required": [
|
|
704
|
+
"bars",
|
|
705
|
+
"nextTime",
|
|
706
|
+
"volumePrecision"
|
|
707
|
+
],
|
|
708
|
+
"description": "Historical candlesticks and pagination metadata."
|
|
709
|
+
}
|
|
710
|
+
},
|
|
711
|
+
{
|
|
712
|
+
"id": "futunn.get_market_snapshot",
|
|
713
|
+
"service": "futunn",
|
|
714
|
+
"name": "get_market_snapshot",
|
|
715
|
+
"description": "Get real-time market snapshots and valuation metrics for up to 400 securities.",
|
|
716
|
+
"operationType": "read",
|
|
717
|
+
"requiredScopes": [
|
|
718
|
+
"quote:read"
|
|
719
|
+
],
|
|
720
|
+
"providerPermissions": [],
|
|
721
|
+
"inputSchema": {
|
|
722
|
+
"type": "object",
|
|
723
|
+
"properties": {
|
|
724
|
+
"symbols": {
|
|
725
|
+
"type": "array",
|
|
726
|
+
"items": {
|
|
727
|
+
"type": "string",
|
|
728
|
+
"minLength": 1,
|
|
729
|
+
"description": "Security code with market prefix, for example US.AAPL or HK.00700."
|
|
730
|
+
},
|
|
731
|
+
"description": "Security codes to query.",
|
|
732
|
+
"minItems": 1,
|
|
733
|
+
"maxItems": 400
|
|
734
|
+
}
|
|
735
|
+
},
|
|
736
|
+
"additionalProperties": false,
|
|
737
|
+
"required": [
|
|
738
|
+
"symbols"
|
|
739
|
+
],
|
|
740
|
+
"description": "Securities to query."
|
|
741
|
+
},
|
|
742
|
+
"outputSchema": {
|
|
743
|
+
"type": "object",
|
|
744
|
+
"properties": {
|
|
745
|
+
"snapshots": {
|
|
746
|
+
"type": "array",
|
|
747
|
+
"items": {
|
|
748
|
+
"type": "object",
|
|
749
|
+
"properties": {
|
|
750
|
+
"code": {
|
|
751
|
+
"type": "string",
|
|
752
|
+
"minLength": 1,
|
|
753
|
+
"description": "Security code with market prefix, for example US.AAPL or HK.00700."
|
|
754
|
+
},
|
|
755
|
+
"last_price": {
|
|
756
|
+
"type": "number",
|
|
757
|
+
"description": "Latest traded price."
|
|
758
|
+
},
|
|
759
|
+
"update_time": {
|
|
760
|
+
"type": "integer",
|
|
761
|
+
"description": "Quote update timestamp in milliseconds."
|
|
762
|
+
},
|
|
763
|
+
"volume": {
|
|
764
|
+
"type": "number",
|
|
765
|
+
"description": "Trading volume in shares or contracts."
|
|
766
|
+
}
|
|
767
|
+
},
|
|
768
|
+
"additionalProperties": true,
|
|
769
|
+
"description": "Market snapshot with additional category-specific fields."
|
|
770
|
+
},
|
|
771
|
+
"description": "Market snapshots with prices, volume, valuation and category-specific fields."
|
|
772
|
+
}
|
|
773
|
+
},
|
|
774
|
+
"additionalProperties": false,
|
|
775
|
+
"required": [
|
|
776
|
+
"snapshots"
|
|
777
|
+
],
|
|
778
|
+
"description": "Market snapshot results."
|
|
779
|
+
}
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
"id": "futunn.get_market_state",
|
|
783
|
+
"service": "futunn",
|
|
784
|
+
"name": "get_market_state",
|
|
785
|
+
"description": "Get trading-session states for a batch of securities.",
|
|
786
|
+
"operationType": "read",
|
|
787
|
+
"requiredScopes": [
|
|
788
|
+
"quote:read"
|
|
789
|
+
],
|
|
790
|
+
"providerPermissions": [],
|
|
791
|
+
"inputSchema": {
|
|
792
|
+
"type": "object",
|
|
793
|
+
"properties": {
|
|
794
|
+
"symbols": {
|
|
795
|
+
"type": "array",
|
|
796
|
+
"items": {
|
|
797
|
+
"type": "string",
|
|
798
|
+
"minLength": 1,
|
|
799
|
+
"description": "Security code including market prefix, for example HK.00700."
|
|
800
|
+
},
|
|
801
|
+
"description": "Securities to query, up to 400.",
|
|
802
|
+
"minItems": 1,
|
|
803
|
+
"maxItems": 400
|
|
804
|
+
},
|
|
805
|
+
"includePreAfterMarket": {
|
|
806
|
+
"type": "boolean",
|
|
807
|
+
"description": "Include US pre-market and after-hours sessions."
|
|
808
|
+
},
|
|
809
|
+
"includeOvernight": {
|
|
810
|
+
"type": "boolean",
|
|
811
|
+
"description": "Include US overnight sessions."
|
|
812
|
+
},
|
|
813
|
+
"includeCryptoBrokers": {
|
|
814
|
+
"type": "boolean",
|
|
815
|
+
"description": "Expand cryptocurrency records by broker."
|
|
816
|
+
}
|
|
817
|
+
},
|
|
818
|
+
"additionalProperties": false,
|
|
819
|
+
"required": [
|
|
820
|
+
"symbols"
|
|
821
|
+
],
|
|
822
|
+
"description": "Market state query."
|
|
823
|
+
},
|
|
824
|
+
"outputSchema": {
|
|
825
|
+
"type": "object",
|
|
826
|
+
"properties": {
|
|
827
|
+
"states": {
|
|
828
|
+
"type": "array",
|
|
829
|
+
"items": {
|
|
830
|
+
"type": "object",
|
|
831
|
+
"properties": {
|
|
832
|
+
"code": {
|
|
833
|
+
"type": "string",
|
|
834
|
+
"minLength": 1,
|
|
835
|
+
"description": "Security code including market prefix, for example HK.00700."
|
|
836
|
+
},
|
|
837
|
+
"market_state": {
|
|
838
|
+
"type": "string",
|
|
839
|
+
"description": "Market state such as open, closed or pre-market."
|
|
840
|
+
},
|
|
841
|
+
"trade_section": {
|
|
842
|
+
"type": "array",
|
|
843
|
+
"items": {
|
|
844
|
+
"type": "object",
|
|
845
|
+
"properties": {},
|
|
846
|
+
"additionalProperties": true,
|
|
847
|
+
"description": "Provider record with additional fields preserved."
|
|
848
|
+
},
|
|
849
|
+
"description": "Trading session details."
|
|
850
|
+
}
|
|
851
|
+
},
|
|
852
|
+
"additionalProperties": true,
|
|
853
|
+
"description": "Security market state."
|
|
854
|
+
},
|
|
855
|
+
"description": "States matched to requested securities."
|
|
856
|
+
}
|
|
857
|
+
},
|
|
858
|
+
"additionalProperties": false,
|
|
859
|
+
"required": [
|
|
860
|
+
"states"
|
|
861
|
+
],
|
|
862
|
+
"description": "Market state results."
|
|
863
|
+
}
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
"id": "futunn.get_operational_efficiency",
|
|
867
|
+
"service": "futunn",
|
|
868
|
+
"name": "get_operational_efficiency",
|
|
869
|
+
"description": "Get historical employee counts and per-employee financial metrics.",
|
|
870
|
+
"operationType": "read",
|
|
871
|
+
"requiredScopes": [
|
|
872
|
+
"quote:read"
|
|
873
|
+
],
|
|
874
|
+
"providerPermissions": [],
|
|
875
|
+
"inputSchema": {
|
|
876
|
+
"type": "object",
|
|
877
|
+
"properties": {
|
|
878
|
+
"symbol": {
|
|
879
|
+
"type": "string",
|
|
880
|
+
"minLength": 1,
|
|
881
|
+
"description": "Security code including market prefix, for example HK.00700."
|
|
882
|
+
},
|
|
883
|
+
"limit": {
|
|
884
|
+
"type": "integer",
|
|
885
|
+
"minimum": 1,
|
|
886
|
+
"maximum": 100,
|
|
887
|
+
"description": "Page size; default 10, maximum 100."
|
|
888
|
+
},
|
|
889
|
+
"financialType": {
|
|
890
|
+
"type": "integer",
|
|
891
|
+
"description": "7=annual reports (default), 102=all cumulative quarterly reports.",
|
|
892
|
+
"enum": [
|
|
893
|
+
7,
|
|
894
|
+
102
|
|
895
|
+
]
|
|
896
|
+
},
|
|
897
|
+
"currencyCode": {
|
|
898
|
+
"type": "string",
|
|
899
|
+
"description": "Report currency code, for example USD or CNY; omit for the native currency."
|
|
900
|
+
},
|
|
901
|
+
"nextKey": {
|
|
902
|
+
"type": "string",
|
|
903
|
+
"description": "Opaque next-page cursor; omit for the first page."
|
|
904
|
+
}
|
|
905
|
+
},
|
|
906
|
+
"additionalProperties": false,
|
|
907
|
+
"required": [
|
|
908
|
+
"symbol"
|
|
909
|
+
],
|
|
910
|
+
"description": "Operational efficiency query."
|
|
911
|
+
},
|
|
912
|
+
"outputSchema": {
|
|
913
|
+
"type": "object",
|
|
914
|
+
"properties": {
|
|
915
|
+
"efficiency": {
|
|
916
|
+
"anyOf": [
|
|
917
|
+
{
|
|
918
|
+
"type": "object",
|
|
919
|
+
"properties": {
|
|
920
|
+
"currency_code": {
|
|
921
|
+
"type": "string",
|
|
922
|
+
"description": "Report currency code, for example USD or CNY; omit for the native currency."
|
|
923
|
+
},
|
|
924
|
+
"item_list": {
|
|
925
|
+
"type": "array",
|
|
926
|
+
"items": {
|
|
927
|
+
"type": "object",
|
|
928
|
+
"properties": {},
|
|
929
|
+
"additionalProperties": true,
|
|
930
|
+
"description": "Provider record with additional fields preserved."
|
|
931
|
+
},
|
|
932
|
+
"description": "Reporting-period employee counts and per-employee metrics."
|
|
933
|
+
}
|
|
934
|
+
},
|
|
935
|
+
"additionalProperties": true,
|
|
936
|
+
"description": "Efficiency metrics in the reported currency."
|
|
937
|
+
},
|
|
938
|
+
{
|
|
939
|
+
"type": "null"
|
|
940
|
+
}
|
|
941
|
+
]
|
|
942
|
+
},
|
|
943
|
+
"pagination": {
|
|
944
|
+
"anyOf": [
|
|
945
|
+
{
|
|
946
|
+
"type": "object",
|
|
947
|
+
"properties": {
|
|
948
|
+
"has_more": {
|
|
949
|
+
"type": "boolean",
|
|
950
|
+
"description": "Whether more results are available."
|
|
951
|
+
},
|
|
952
|
+
"next_key": {
|
|
953
|
+
"type": "string",
|
|
954
|
+
"description": "Opaque next-page cursor; omit for the first page."
|
|
955
|
+
}
|
|
956
|
+
},
|
|
957
|
+
"additionalProperties": true,
|
|
958
|
+
"description": "Pagination metadata from the response envelope; null when omitted."
|
|
959
|
+
},
|
|
960
|
+
{
|
|
961
|
+
"type": "null"
|
|
962
|
+
}
|
|
963
|
+
]
|
|
964
|
+
},
|
|
965
|
+
"noData": {
|
|
966
|
+
"type": "boolean",
|
|
967
|
+
"description": "Whether the provider explicitly reported no_data for a valid security."
|
|
968
|
+
}
|
|
969
|
+
},
|
|
970
|
+
"additionalProperties": false,
|
|
971
|
+
"required": [
|
|
972
|
+
"efficiency",
|
|
973
|
+
"pagination",
|
|
974
|
+
"noData"
|
|
975
|
+
],
|
|
976
|
+
"description": "Operational efficiency results and pagination."
|
|
977
|
+
}
|
|
978
|
+
},
|
|
979
|
+
{
|
|
980
|
+
"id": "futunn.get_order_details",
|
|
981
|
+
"service": "futunn",
|
|
982
|
+
"name": "get_order_details",
|
|
983
|
+
"description": "Get details of fewer than 50 orders from the same exchange.",
|
|
984
|
+
"operationType": "read",
|
|
985
|
+
"requiredScopes": [
|
|
986
|
+
"trade:read"
|
|
987
|
+
],
|
|
988
|
+
"providerPermissions": [],
|
|
989
|
+
"inputSchema": {
|
|
990
|
+
"type": "object",
|
|
991
|
+
"properties": {
|
|
992
|
+
"accountId": {
|
|
993
|
+
"type": "string",
|
|
994
|
+
"description": "Trading account ID as a decimal string.",
|
|
995
|
+
"pattern": "^[0-9]+$"
|
|
996
|
+
},
|
|
997
|
+
"exchange": {
|
|
998
|
+
"type": "string",
|
|
999
|
+
"enum": [
|
|
1000
|
+
"US",
|
|
1001
|
+
"SEHK",
|
|
1002
|
+
"SGX",
|
|
1003
|
+
"SSE",
|
|
1004
|
+
"SZSE",
|
|
1005
|
+
"JP",
|
|
1006
|
+
"CA",
|
|
1007
|
+
"CME",
|
|
1008
|
+
"CBOT",
|
|
1009
|
+
"NYMEX",
|
|
1010
|
+
"COMEX",
|
|
1011
|
+
"CBOE",
|
|
1012
|
+
"HKFE",
|
|
1013
|
+
"KR",
|
|
1014
|
+
"BMS",
|
|
1015
|
+
"BMD",
|
|
1016
|
+
"ASX"
|
|
1017
|
+
],
|
|
1018
|
+
"description": "Exchange shared by all requested orders."
|
|
1019
|
+
},
|
|
1020
|
+
"orderIds": {
|
|
1021
|
+
"type": "array",
|
|
1022
|
+
"items": {
|
|
1023
|
+
"type": "string",
|
|
1024
|
+
"minLength": 1,
|
|
1025
|
+
"description": "Order ID."
|
|
1026
|
+
},
|
|
1027
|
+
"description": "Order IDs from the same exchange.",
|
|
1028
|
+
"minItems": 1,
|
|
1029
|
+
"maxItems": 49
|
|
1030
|
+
}
|
|
1031
|
+
},
|
|
1032
|
+
"additionalProperties": false,
|
|
1033
|
+
"required": [
|
|
1034
|
+
"accountId",
|
|
1035
|
+
"exchange",
|
|
1036
|
+
"orderIds"
|
|
1037
|
+
],
|
|
1038
|
+
"description": "Order detail query."
|
|
1039
|
+
},
|
|
1040
|
+
"outputSchema": {
|
|
1041
|
+
"type": "object",
|
|
1042
|
+
"properties": {
|
|
1043
|
+
"orders": {
|
|
1044
|
+
"type": "array",
|
|
1045
|
+
"items": {
|
|
1046
|
+
"type": "object",
|
|
1047
|
+
"properties": {
|
|
1048
|
+
"order_id": {
|
|
1049
|
+
"type": "string",
|
|
1050
|
+
"description": "Order ID."
|
|
1051
|
+
},
|
|
1052
|
+
"code": {
|
|
1053
|
+
"type": "string",
|
|
1054
|
+
"minLength": 1,
|
|
1055
|
+
"description": "Security code including market prefix, for example HK.00700."
|
|
1056
|
+
},
|
|
1057
|
+
"order_status": {
|
|
1058
|
+
"type": "string",
|
|
1059
|
+
"description": "Order status."
|
|
1060
|
+
},
|
|
1061
|
+
"qty": {
|
|
1062
|
+
"type": "string",
|
|
1063
|
+
"description": "Quantity as a decimal string."
|
|
1064
|
+
},
|
|
1065
|
+
"price": {
|
|
1066
|
+
"type": "string",
|
|
1067
|
+
"description": "Price as a decimal string."
|
|
1068
|
+
},
|
|
1069
|
+
"create_time": {
|
|
1070
|
+
"type": "integer",
|
|
1071
|
+
"description": "Creation timestamp in microseconds."
|
|
1072
|
+
}
|
|
1073
|
+
},
|
|
1074
|
+
"additionalProperties": true,
|
|
1075
|
+
"description": "Order with original quantities, prices and status fields."
|
|
1076
|
+
},
|
|
1077
|
+
"description": "Order details."
|
|
1078
|
+
}
|
|
1079
|
+
},
|
|
1080
|
+
"additionalProperties": false,
|
|
1081
|
+
"required": [
|
|
1082
|
+
"orders"
|
|
1083
|
+
],
|
|
1084
|
+
"description": "Order detail results."
|
|
1085
|
+
}
|
|
1086
|
+
},
|
|
1087
|
+
{
|
|
1088
|
+
"id": "futunn.get_revenue_breakdown",
|
|
1089
|
+
"service": "futunn",
|
|
1090
|
+
"name": "get_revenue_breakdown",
|
|
1091
|
+
"description": "Get revenue composition by product, industry, region or business.",
|
|
1092
|
+
"operationType": "read",
|
|
1093
|
+
"requiredScopes": [
|
|
1094
|
+
"quote:read"
|
|
1095
|
+
],
|
|
1096
|
+
"providerPermissions": [],
|
|
1097
|
+
"inputSchema": {
|
|
1098
|
+
"type": "object",
|
|
1099
|
+
"properties": {
|
|
1100
|
+
"symbol": {
|
|
1101
|
+
"type": "string",
|
|
1102
|
+
"minLength": 1,
|
|
1103
|
+
"description": "Security code including market prefix, for example HK.00700."
|
|
1104
|
+
},
|
|
1105
|
+
"date": {
|
|
1106
|
+
"type": "integer",
|
|
1107
|
+
"description": "Financial period end timestamp in seconds; 0 selects the latest period."
|
|
1108
|
+
},
|
|
1109
|
+
"financialType": {
|
|
1110
|
+
"type": "integer",
|
|
1111
|
+
"description": "Financial period selector; default 0."
|
|
1112
|
+
},
|
|
1113
|
+
"currencyCode": {
|
|
1114
|
+
"type": "string",
|
|
1115
|
+
"description": "Report currency code, for example USD or CNY; omit for the native currency."
|
|
1116
|
+
}
|
|
1117
|
+
},
|
|
1118
|
+
"additionalProperties": false,
|
|
1119
|
+
"required": [
|
|
1120
|
+
"symbol"
|
|
1121
|
+
],
|
|
1122
|
+
"description": "Revenue composition query."
|
|
1123
|
+
},
|
|
1124
|
+
"outputSchema": {
|
|
1125
|
+
"type": "object",
|
|
1126
|
+
"properties": {
|
|
1127
|
+
"revenue": {
|
|
1128
|
+
"anyOf": [
|
|
1129
|
+
{
|
|
1130
|
+
"type": "object",
|
|
1131
|
+
"properties": {
|
|
1132
|
+
"period": {
|
|
1133
|
+
"type": "string",
|
|
1134
|
+
"description": "Financial reporting period."
|
|
1135
|
+
},
|
|
1136
|
+
"currency_code": {
|
|
1137
|
+
"type": "string",
|
|
1138
|
+
"description": "Report currency code, for example USD or CNY; omit for the native currency."
|
|
1139
|
+
},
|
|
1140
|
+
"breakdown_list": {
|
|
1141
|
+
"type": "array",
|
|
1142
|
+
"items": {
|
|
1143
|
+
"type": "object",
|
|
1144
|
+
"properties": {},
|
|
1145
|
+
"additionalProperties": true,
|
|
1146
|
+
"description": "Provider record with additional fields preserved."
|
|
1147
|
+
},
|
|
1148
|
+
"description": "Revenue composition dimensions and items."
|
|
1149
|
+
},
|
|
1150
|
+
"screen_date_list": {
|
|
1151
|
+
"type": "array",
|
|
1152
|
+
"items": {
|
|
1153
|
+
"type": "object",
|
|
1154
|
+
"properties": {},
|
|
1155
|
+
"additionalProperties": true,
|
|
1156
|
+
"description": "Provider record with additional fields preserved."
|
|
1157
|
+
},
|
|
1158
|
+
"description": "Available period dates in seconds and financial type codes."
|
|
1159
|
+
}
|
|
1160
|
+
},
|
|
1161
|
+
"additionalProperties": true,
|
|
1162
|
+
"description": "Revenue breakdown with available period choices."
|
|
1163
|
+
},
|
|
1164
|
+
{
|
|
1165
|
+
"type": "null"
|
|
1166
|
+
}
|
|
1167
|
+
]
|
|
1168
|
+
},
|
|
1169
|
+
"noData": {
|
|
1170
|
+
"type": "boolean",
|
|
1171
|
+
"description": "Whether the provider explicitly reported no_data for a valid security."
|
|
1172
|
+
}
|
|
1173
|
+
},
|
|
1174
|
+
"additionalProperties": false,
|
|
1175
|
+
"required": [
|
|
1176
|
+
"revenue",
|
|
1177
|
+
"noData"
|
|
1178
|
+
],
|
|
1179
|
+
"description": "Revenue composition and available reporting periods."
|
|
1180
|
+
}
|
|
1181
|
+
},
|
|
1182
|
+
{
|
|
1183
|
+
"id": "futunn.get_security_info",
|
|
1184
|
+
"service": "futunn",
|
|
1185
|
+
"name": "get_security_info",
|
|
1186
|
+
"description": "Get basic security information, including listing date and lot size.",
|
|
1187
|
+
"operationType": "read",
|
|
1188
|
+
"requiredScopes": [
|
|
1189
|
+
"quote:read"
|
|
1190
|
+
],
|
|
1191
|
+
"providerPermissions": [],
|
|
1192
|
+
"inputSchema": {
|
|
1193
|
+
"type": "object",
|
|
1194
|
+
"properties": {
|
|
1195
|
+
"symbols": {
|
|
1196
|
+
"type": "array",
|
|
1197
|
+
"items": {
|
|
1198
|
+
"type": "string",
|
|
1199
|
+
"minLength": 1,
|
|
1200
|
+
"description": "Security code including market prefix, for example HK.00700."
|
|
1201
|
+
},
|
|
1202
|
+
"description": "Securities to query, up to 400.",
|
|
1203
|
+
"minItems": 1,
|
|
1204
|
+
"maxItems": 400
|
|
1205
|
+
}
|
|
1206
|
+
},
|
|
1207
|
+
"additionalProperties": false,
|
|
1208
|
+
"required": [
|
|
1209
|
+
"symbols"
|
|
1210
|
+
],
|
|
1211
|
+
"description": "Security information query."
|
|
1212
|
+
},
|
|
1213
|
+
"outputSchema": {
|
|
1214
|
+
"type": "object",
|
|
1215
|
+
"properties": {
|
|
1216
|
+
"securities": {
|
|
1217
|
+
"type": "array",
|
|
1218
|
+
"items": {
|
|
1219
|
+
"type": "object",
|
|
1220
|
+
"properties": {
|
|
1221
|
+
"code": {
|
|
1222
|
+
"type": "string",
|
|
1223
|
+
"minLength": 1,
|
|
1224
|
+
"description": "Security code including market prefix, for example HK.00700."
|
|
1225
|
+
},
|
|
1226
|
+
"name": {
|
|
1227
|
+
"type": "string",
|
|
1228
|
+
"description": "Security name."
|
|
1229
|
+
},
|
|
1230
|
+
"lot_size": {
|
|
1231
|
+
"type": "integer",
|
|
1232
|
+
"description": "Board lot size or contract multiplier."
|
|
1233
|
+
},
|
|
1234
|
+
"stock_id": {
|
|
1235
|
+
"type": "integer",
|
|
1236
|
+
"description": "Provider security identifier."
|
|
1237
|
+
}
|
|
1238
|
+
},
|
|
1239
|
+
"additionalProperties": true,
|
|
1240
|
+
"description": "Security profile."
|
|
1241
|
+
},
|
|
1242
|
+
"description": "Resolved security profiles."
|
|
1243
|
+
}
|
|
1244
|
+
},
|
|
1245
|
+
"additionalProperties": false,
|
|
1246
|
+
"required": [
|
|
1247
|
+
"securities"
|
|
1248
|
+
],
|
|
1249
|
+
"description": "Security profiles; unresolved codes may be omitted by the provider."
|
|
1250
|
+
}
|
|
1251
|
+
},
|
|
1252
|
+
{
|
|
1253
|
+
"id": "futunn.get_valuation",
|
|
1254
|
+
"service": "futunn",
|
|
1255
|
+
"name": "get_valuation",
|
|
1256
|
+
"description": "Get PE, PB or PS valuation history and market or sector comparisons.",
|
|
1257
|
+
"operationType": "read",
|
|
1258
|
+
"requiredScopes": [
|
|
1259
|
+
"quote:read"
|
|
1260
|
+
],
|
|
1261
|
+
"providerPermissions": [],
|
|
1262
|
+
"inputSchema": {
|
|
1263
|
+
"type": "object",
|
|
1264
|
+
"properties": {
|
|
1265
|
+
"symbol": {
|
|
1266
|
+
"type": "string",
|
|
1267
|
+
"minLength": 1,
|
|
1268
|
+
"description": "Security code including market prefix, for example HK.00700."
|
|
1269
|
+
},
|
|
1270
|
+
"valuationType": {
|
|
1271
|
+
"type": "integer",
|
|
1272
|
+
"description": "1=PE (default), 2=PB, 3=PS.",
|
|
1273
|
+
"enum": [
|
|
1274
|
+
1,
|
|
1275
|
+
2,
|
|
1276
|
+
3
|
|
1277
|
+
]
|
|
1278
|
+
},
|
|
1279
|
+
"intervalType": {
|
|
1280
|
+
"type": "integer",
|
|
1281
|
+
"description": "History span: 1=3mo, 2=6mo, 3=1yr, 4=3yr, 5=since May 2019, 6=5yr, 7=10yr, 8=2yr, 9=20yr, 10=30yr.",
|
|
1282
|
+
"enum": [
|
|
1283
|
+
1,
|
|
1284
|
+
2,
|
|
1285
|
+
3,
|
|
1286
|
+
4,
|
|
1287
|
+
5,
|
|
1288
|
+
6,
|
|
1289
|
+
7,
|
|
1290
|
+
8,
|
|
1291
|
+
9,
|
|
1292
|
+
10
|
|
1293
|
+
]
|
|
1294
|
+
}
|
|
1295
|
+
},
|
|
1296
|
+
"additionalProperties": false,
|
|
1297
|
+
"required": [
|
|
1298
|
+
"symbol"
|
|
1299
|
+
],
|
|
1300
|
+
"description": "Valuation query."
|
|
1301
|
+
},
|
|
1302
|
+
"outputSchema": {
|
|
1303
|
+
"type": "object",
|
|
1304
|
+
"properties": {
|
|
1305
|
+
"valuation": {
|
|
1306
|
+
"type": "object",
|
|
1307
|
+
"properties": {
|
|
1308
|
+
"trend": {
|
|
1309
|
+
"type": "object",
|
|
1310
|
+
"properties": {},
|
|
1311
|
+
"additionalProperties": true,
|
|
1312
|
+
"description": "Current, historical and forward valuation metrics."
|
|
1313
|
+
},
|
|
1314
|
+
"market_distribution": {
|
|
1315
|
+
"type": "object",
|
|
1316
|
+
"properties": {},
|
|
1317
|
+
"additionalProperties": true,
|
|
1318
|
+
"description": "Provider record with additional fields preserved."
|
|
1319
|
+
},
|
|
1320
|
+
"plate_distribution": {
|
|
1321
|
+
"type": "object",
|
|
1322
|
+
"properties": {},
|
|
1323
|
+
"additionalProperties": true,
|
|
1324
|
+
"description": "Provider record with additional fields preserved."
|
|
1325
|
+
},
|
|
1326
|
+
"profit_growth_rate": {
|
|
1327
|
+
"type": "object",
|
|
1328
|
+
"properties": {},
|
|
1329
|
+
"additionalProperties": true,
|
|
1330
|
+
"description": "Provider record with additional fields preserved."
|
|
1331
|
+
}
|
|
1332
|
+
},
|
|
1333
|
+
"additionalProperties": true,
|
|
1334
|
+
"description": "Valuation trends, distributions and growth analysis."
|
|
1335
|
+
}
|
|
1336
|
+
},
|
|
1337
|
+
"additionalProperties": false,
|
|
1338
|
+
"required": [
|
|
1339
|
+
"valuation"
|
|
1340
|
+
],
|
|
1341
|
+
"description": "Valuation results."
|
|
1342
|
+
}
|
|
1343
|
+
},
|
|
1344
|
+
{
|
|
1345
|
+
"id": "futunn.list_accounts",
|
|
1346
|
+
"service": "futunn",
|
|
1347
|
+
"name": "list_accounts",
|
|
1348
|
+
"description": "List trading accounts authorized by the connected user.",
|
|
1349
|
+
"operationType": "read",
|
|
1350
|
+
"requiredScopes": [
|
|
1351
|
+
"trade:read"
|
|
1352
|
+
],
|
|
1353
|
+
"providerPermissions": [],
|
|
1354
|
+
"inputSchema": {
|
|
1355
|
+
"type": "object",
|
|
1356
|
+
"properties": {},
|
|
1357
|
+
"additionalProperties": false,
|
|
1358
|
+
"description": "Authorized account query."
|
|
1359
|
+
},
|
|
1360
|
+
"outputSchema": {
|
|
1361
|
+
"type": "object",
|
|
1362
|
+
"properties": {
|
|
1363
|
+
"accounts": {
|
|
1364
|
+
"type": "array",
|
|
1365
|
+
"items": {
|
|
1366
|
+
"type": "object",
|
|
1367
|
+
"properties": {
|
|
1368
|
+
"account_id": {
|
|
1369
|
+
"type": "string",
|
|
1370
|
+
"description": "Trading account ID as a lossless decimal string."
|
|
1371
|
+
},
|
|
1372
|
+
"security_firm": {
|
|
1373
|
+
"type": "string",
|
|
1374
|
+
"description": "Broker identifier."
|
|
1375
|
+
},
|
|
1376
|
+
"acc_type": {
|
|
1377
|
+
"type": "string",
|
|
1378
|
+
"description": "Account type, such as cash or margin."
|
|
1379
|
+
}
|
|
1380
|
+
},
|
|
1381
|
+
"additionalProperties": true,
|
|
1382
|
+
"description": "Authorized account details."
|
|
1383
|
+
},
|
|
1384
|
+
"description": "Authorized accounts; numeric account_id values are returned as lossless decimal strings."
|
|
1385
|
+
}
|
|
1386
|
+
},
|
|
1387
|
+
"additionalProperties": false,
|
|
1388
|
+
"required": [
|
|
1389
|
+
"accounts"
|
|
1390
|
+
],
|
|
1391
|
+
"description": "Authorized trading accounts."
|
|
1392
|
+
}
|
|
1393
|
+
},
|
|
1394
|
+
{
|
|
1395
|
+
"id": "futunn.list_history_deals",
|
|
1396
|
+
"service": "futunn",
|
|
1397
|
+
"name": "list_history_deals",
|
|
1398
|
+
"description": "List historical execution fills filtered by update time in microseconds.",
|
|
1399
|
+
"operationType": "read",
|
|
1400
|
+
"requiredScopes": [
|
|
1401
|
+
"trade:read"
|
|
1402
|
+
],
|
|
1403
|
+
"providerPermissions": [],
|
|
1404
|
+
"inputSchema": {
|
|
1405
|
+
"type": "object",
|
|
1406
|
+
"properties": {
|
|
1407
|
+
"accountId": {
|
|
1408
|
+
"type": "string",
|
|
1409
|
+
"description": "Trading account ID as a decimal string.",
|
|
1410
|
+
"pattern": "^[0-9]+$"
|
|
1411
|
+
},
|
|
1412
|
+
"market": {
|
|
1413
|
+
"type": "string",
|
|
1414
|
+
"enum": [
|
|
1415
|
+
"NONE",
|
|
1416
|
+
"HK",
|
|
1417
|
+
"US",
|
|
1418
|
+
"SG",
|
|
1419
|
+
"HKCC",
|
|
1420
|
+
"CA",
|
|
1421
|
+
"FUTURES",
|
|
1422
|
+
"JP",
|
|
1423
|
+
"KR",
|
|
1424
|
+
"MY",
|
|
1425
|
+
"AU"
|
|
1426
|
+
],
|
|
1427
|
+
"description": "Trading market; HKCC denotes China Stock Connect."
|
|
1428
|
+
},
|
|
1429
|
+
"pageFlag": {
|
|
1430
|
+
"type": "string",
|
|
1431
|
+
"description": "Opaque page flag; omit or use an empty string for the first page."
|
|
1432
|
+
},
|
|
1433
|
+
"pageSize": {
|
|
1434
|
+
"type": "integer",
|
|
1435
|
+
"minimum": 10,
|
|
1436
|
+
"maximum": 50,
|
|
1437
|
+
"description": "Page size; default 50, range 10-50."
|
|
1438
|
+
},
|
|
1439
|
+
"code": {
|
|
1440
|
+
"type": "string",
|
|
1441
|
+
"minLength": 1,
|
|
1442
|
+
"description": "Security code including market prefix, for example HK.00700."
|
|
1443
|
+
},
|
|
1444
|
+
"start": {
|
|
1445
|
+
"type": "string",
|
|
1446
|
+
"description": "Unix timestamp in microseconds as a decimal string; 0 uses the provider 90-day default window.",
|
|
1447
|
+
"pattern": "^[0-9]+$"
|
|
1448
|
+
},
|
|
1449
|
+
"end": {
|
|
1450
|
+
"type": "string",
|
|
1451
|
+
"description": "Unix timestamp in microseconds as a decimal string; 0 uses the provider 90-day default window.",
|
|
1452
|
+
"pattern": "^[0-9]+$"
|
|
1453
|
+
}
|
|
1454
|
+
},
|
|
1455
|
+
"additionalProperties": false,
|
|
1456
|
+
"required": [
|
|
1457
|
+
"accountId",
|
|
1458
|
+
"market"
|
|
1459
|
+
],
|
|
1460
|
+
"description": "Account order or fill query."
|
|
1461
|
+
},
|
|
1462
|
+
"outputSchema": {
|
|
1463
|
+
"type": "object",
|
|
1464
|
+
"properties": {
|
|
1465
|
+
"deals": {
|
|
1466
|
+
"type": "array",
|
|
1467
|
+
"items": {
|
|
1468
|
+
"type": "object",
|
|
1469
|
+
"properties": {
|
|
1470
|
+
"deal_id": {
|
|
1471
|
+
"type": "string",
|
|
1472
|
+
"description": "Case-sensitive base58 fill ID; preserve exactly."
|
|
1473
|
+
},
|
|
1474
|
+
"order_id": {
|
|
1475
|
+
"type": "string",
|
|
1476
|
+
"description": "Order ID."
|
|
1477
|
+
},
|
|
1478
|
+
"qty": {
|
|
1479
|
+
"type": "string",
|
|
1480
|
+
"description": "Quantity as a decimal string."
|
|
1481
|
+
},
|
|
1482
|
+
"price": {
|
|
1483
|
+
"type": "string",
|
|
1484
|
+
"description": "Price as a decimal string."
|
|
1485
|
+
},
|
|
1486
|
+
"create_time": {
|
|
1487
|
+
"type": "integer",
|
|
1488
|
+
"description": "Creation timestamp in microseconds."
|
|
1489
|
+
}
|
|
1490
|
+
},
|
|
1491
|
+
"additionalProperties": true,
|
|
1492
|
+
"description": "Execution fill record."
|
|
1493
|
+
},
|
|
1494
|
+
"description": "Returned account records in provider order."
|
|
1495
|
+
},
|
|
1496
|
+
"pageFlag": {
|
|
1497
|
+
"anyOf": [
|
|
1498
|
+
{
|
|
1499
|
+
"type": "string",
|
|
1500
|
+
"description": "Next-page flag; null when omitted."
|
|
1501
|
+
},
|
|
1502
|
+
{
|
|
1503
|
+
"type": "null"
|
|
1504
|
+
}
|
|
1505
|
+
]
|
|
1506
|
+
},
|
|
1507
|
+
"completed": {
|
|
1508
|
+
"anyOf": [
|
|
1509
|
+
{
|
|
1510
|
+
"type": "boolean",
|
|
1511
|
+
"description": "True means this batch is complete; null means the provider omitted the flag."
|
|
1512
|
+
},
|
|
1513
|
+
{
|
|
1514
|
+
"type": "null"
|
|
1515
|
+
}
|
|
1516
|
+
]
|
|
1517
|
+
}
|
|
1518
|
+
},
|
|
1519
|
+
"additionalProperties": false,
|
|
1520
|
+
"required": [
|
|
1521
|
+
"deals",
|
|
1522
|
+
"pageFlag",
|
|
1523
|
+
"completed"
|
|
1524
|
+
],
|
|
1525
|
+
"description": "One page of account records."
|
|
1526
|
+
}
|
|
1527
|
+
},
|
|
1528
|
+
{
|
|
1529
|
+
"id": "futunn.list_history_orders",
|
|
1530
|
+
"service": "futunn",
|
|
1531
|
+
"name": "list_history_orders",
|
|
1532
|
+
"description": "List historical orders filtered by creation time in microseconds.",
|
|
1533
|
+
"operationType": "read",
|
|
1534
|
+
"requiredScopes": [
|
|
1535
|
+
"trade:read"
|
|
1536
|
+
],
|
|
1537
|
+
"providerPermissions": [],
|
|
1538
|
+
"inputSchema": {
|
|
1539
|
+
"type": "object",
|
|
1540
|
+
"properties": {
|
|
1541
|
+
"accountId": {
|
|
1542
|
+
"type": "string",
|
|
1543
|
+
"description": "Trading account ID as a decimal string.",
|
|
1544
|
+
"pattern": "^[0-9]+$"
|
|
1545
|
+
},
|
|
1546
|
+
"market": {
|
|
1547
|
+
"type": "string",
|
|
1548
|
+
"enum": [
|
|
1549
|
+
"NONE",
|
|
1550
|
+
"HK",
|
|
1551
|
+
"US",
|
|
1552
|
+
"SG",
|
|
1553
|
+
"HKCC",
|
|
1554
|
+
"CA",
|
|
1555
|
+
"FUTURES",
|
|
1556
|
+
"JP",
|
|
1557
|
+
"KR",
|
|
1558
|
+
"MY",
|
|
1559
|
+
"AU"
|
|
1560
|
+
],
|
|
1561
|
+
"description": "Trading market; HKCC denotes China Stock Connect."
|
|
1562
|
+
},
|
|
1563
|
+
"pageFlag": {
|
|
1564
|
+
"type": "string",
|
|
1565
|
+
"description": "Opaque page flag; omit or use an empty string for the first page."
|
|
1566
|
+
},
|
|
1567
|
+
"pageSize": {
|
|
1568
|
+
"type": "integer",
|
|
1569
|
+
"minimum": 10,
|
|
1570
|
+
"maximum": 100,
|
|
1571
|
+
"description": "Page size; default 50, range 10-100."
|
|
1572
|
+
},
|
|
1573
|
+
"code": {
|
|
1574
|
+
"type": "string",
|
|
1575
|
+
"minLength": 1,
|
|
1576
|
+
"description": "Security code including market prefix, for example HK.00700."
|
|
1577
|
+
},
|
|
1578
|
+
"start": {
|
|
1579
|
+
"type": "string",
|
|
1580
|
+
"description": "Unix timestamp in microseconds as a decimal string; 0 uses the provider 90-day default window.",
|
|
1581
|
+
"pattern": "^[0-9]+$"
|
|
1582
|
+
},
|
|
1583
|
+
"end": {
|
|
1584
|
+
"type": "string",
|
|
1585
|
+
"description": "Unix timestamp in microseconds as a decimal string; 0 uses the provider 90-day default window.",
|
|
1586
|
+
"pattern": "^[0-9]+$"
|
|
1587
|
+
}
|
|
1588
|
+
},
|
|
1589
|
+
"additionalProperties": false,
|
|
1590
|
+
"required": [
|
|
1591
|
+
"accountId",
|
|
1592
|
+
"market"
|
|
1593
|
+
],
|
|
1594
|
+
"description": "Account order or fill query."
|
|
1595
|
+
},
|
|
1596
|
+
"outputSchema": {
|
|
1597
|
+
"type": "object",
|
|
1598
|
+
"properties": {
|
|
1599
|
+
"orders": {
|
|
1600
|
+
"type": "array",
|
|
1601
|
+
"items": {
|
|
1602
|
+
"type": "object",
|
|
1603
|
+
"properties": {
|
|
1604
|
+
"order_id": {
|
|
1605
|
+
"type": "string",
|
|
1606
|
+
"description": "Order ID."
|
|
1607
|
+
},
|
|
1608
|
+
"code": {
|
|
1609
|
+
"type": "string",
|
|
1610
|
+
"minLength": 1,
|
|
1611
|
+
"description": "Security code including market prefix, for example HK.00700."
|
|
1612
|
+
},
|
|
1613
|
+
"order_status": {
|
|
1614
|
+
"type": "string",
|
|
1615
|
+
"description": "Order status."
|
|
1616
|
+
},
|
|
1617
|
+
"qty": {
|
|
1618
|
+
"type": "string",
|
|
1619
|
+
"description": "Quantity as a decimal string."
|
|
1620
|
+
},
|
|
1621
|
+
"price": {
|
|
1622
|
+
"type": "string",
|
|
1623
|
+
"description": "Price as a decimal string."
|
|
1624
|
+
},
|
|
1625
|
+
"create_time": {
|
|
1626
|
+
"type": "integer",
|
|
1627
|
+
"description": "Creation timestamp in microseconds."
|
|
1628
|
+
}
|
|
1629
|
+
},
|
|
1630
|
+
"additionalProperties": true,
|
|
1631
|
+
"description": "Order with original quantities, prices and status fields."
|
|
1632
|
+
},
|
|
1633
|
+
"description": "Returned account records in provider order."
|
|
1634
|
+
},
|
|
1635
|
+
"pageFlag": {
|
|
1636
|
+
"anyOf": [
|
|
1637
|
+
{
|
|
1638
|
+
"type": "string",
|
|
1639
|
+
"description": "Next-page flag; null when omitted."
|
|
1640
|
+
},
|
|
1641
|
+
{
|
|
1642
|
+
"type": "null"
|
|
1643
|
+
}
|
|
1644
|
+
]
|
|
1645
|
+
},
|
|
1646
|
+
"completed": {
|
|
1647
|
+
"anyOf": [
|
|
1648
|
+
{
|
|
1649
|
+
"type": "boolean",
|
|
1650
|
+
"description": "True means this batch is complete; null means the provider omitted the flag."
|
|
1651
|
+
},
|
|
1652
|
+
{
|
|
1653
|
+
"type": "null"
|
|
1654
|
+
}
|
|
1655
|
+
]
|
|
1656
|
+
}
|
|
1657
|
+
},
|
|
1658
|
+
"additionalProperties": false,
|
|
1659
|
+
"required": [
|
|
1660
|
+
"orders",
|
|
1661
|
+
"pageFlag",
|
|
1662
|
+
"completed"
|
|
1663
|
+
],
|
|
1664
|
+
"description": "One page of account records."
|
|
1665
|
+
}
|
|
1666
|
+
},
|
|
1667
|
+
{
|
|
1668
|
+
"id": "futunn.list_open_orders",
|
|
1669
|
+
"service": "futunn",
|
|
1670
|
+
"name": "list_open_orders",
|
|
1671
|
+
"description": "List recent orders, including pending orders and orders filled or cancelled in the last 24 hours.",
|
|
1672
|
+
"operationType": "read",
|
|
1673
|
+
"requiredScopes": [
|
|
1674
|
+
"trade:read"
|
|
1675
|
+
],
|
|
1676
|
+
"providerPermissions": [],
|
|
1677
|
+
"inputSchema": {
|
|
1678
|
+
"type": "object",
|
|
1679
|
+
"properties": {
|
|
1680
|
+
"accountId": {
|
|
1681
|
+
"type": "string",
|
|
1682
|
+
"description": "Trading account ID as a decimal string.",
|
|
1683
|
+
"pattern": "^[0-9]+$"
|
|
1684
|
+
},
|
|
1685
|
+
"market": {
|
|
1686
|
+
"type": "string",
|
|
1687
|
+
"enum": [
|
|
1688
|
+
"NONE",
|
|
1689
|
+
"HK",
|
|
1690
|
+
"US",
|
|
1691
|
+
"SG",
|
|
1692
|
+
"HKCC",
|
|
1693
|
+
"CA",
|
|
1694
|
+
"FUTURES",
|
|
1695
|
+
"JP",
|
|
1696
|
+
"KR",
|
|
1697
|
+
"MY",
|
|
1698
|
+
"AU"
|
|
1699
|
+
],
|
|
1700
|
+
"description": "Trading market; HKCC denotes China Stock Connect."
|
|
1701
|
+
},
|
|
1702
|
+
"pageFlag": {
|
|
1703
|
+
"type": "string",
|
|
1704
|
+
"description": "Opaque page flag; omit or use an empty string for the first page."
|
|
1705
|
+
},
|
|
1706
|
+
"pageSize": {
|
|
1707
|
+
"type": "integer",
|
|
1708
|
+
"minimum": 10,
|
|
1709
|
+
"maximum": 100,
|
|
1710
|
+
"description": "Page size; default 50, range 10-100."
|
|
1711
|
+
}
|
|
1712
|
+
},
|
|
1713
|
+
"additionalProperties": false,
|
|
1714
|
+
"required": [
|
|
1715
|
+
"accountId",
|
|
1716
|
+
"market"
|
|
1717
|
+
],
|
|
1718
|
+
"description": "Account order or fill query."
|
|
1719
|
+
},
|
|
1720
|
+
"outputSchema": {
|
|
1721
|
+
"type": "object",
|
|
1722
|
+
"properties": {
|
|
1723
|
+
"orders": {
|
|
1724
|
+
"type": "array",
|
|
1725
|
+
"items": {
|
|
1726
|
+
"type": "object",
|
|
1727
|
+
"properties": {
|
|
1728
|
+
"order_id": {
|
|
1729
|
+
"type": "string",
|
|
1730
|
+
"description": "Order ID."
|
|
1731
|
+
},
|
|
1732
|
+
"code": {
|
|
1733
|
+
"type": "string",
|
|
1734
|
+
"minLength": 1,
|
|
1735
|
+
"description": "Security code including market prefix, for example HK.00700."
|
|
1736
|
+
},
|
|
1737
|
+
"order_status": {
|
|
1738
|
+
"type": "string",
|
|
1739
|
+
"description": "Order status."
|
|
1740
|
+
},
|
|
1741
|
+
"qty": {
|
|
1742
|
+
"type": "string",
|
|
1743
|
+
"description": "Quantity as a decimal string."
|
|
1744
|
+
},
|
|
1745
|
+
"price": {
|
|
1746
|
+
"type": "string",
|
|
1747
|
+
"description": "Price as a decimal string."
|
|
1748
|
+
},
|
|
1749
|
+
"create_time": {
|
|
1750
|
+
"type": "integer",
|
|
1751
|
+
"description": "Creation timestamp in microseconds."
|
|
1752
|
+
}
|
|
1753
|
+
},
|
|
1754
|
+
"additionalProperties": true,
|
|
1755
|
+
"description": "Order with original quantities, prices and status fields."
|
|
1756
|
+
},
|
|
1757
|
+
"description": "Returned account records in provider order."
|
|
1758
|
+
},
|
|
1759
|
+
"pageFlag": {
|
|
1760
|
+
"anyOf": [
|
|
1761
|
+
{
|
|
1762
|
+
"type": "string",
|
|
1763
|
+
"description": "Next-page flag; null when omitted."
|
|
1764
|
+
},
|
|
1765
|
+
{
|
|
1766
|
+
"type": "null"
|
|
1767
|
+
}
|
|
1768
|
+
]
|
|
1769
|
+
},
|
|
1770
|
+
"completed": {
|
|
1771
|
+
"anyOf": [
|
|
1772
|
+
{
|
|
1773
|
+
"type": "boolean",
|
|
1774
|
+
"description": "True means this batch is complete; null means the provider omitted the flag."
|
|
1775
|
+
},
|
|
1776
|
+
{
|
|
1777
|
+
"type": "null"
|
|
1778
|
+
}
|
|
1779
|
+
]
|
|
1780
|
+
}
|
|
1781
|
+
},
|
|
1782
|
+
"additionalProperties": false,
|
|
1783
|
+
"required": [
|
|
1784
|
+
"orders",
|
|
1785
|
+
"pageFlag",
|
|
1786
|
+
"completed"
|
|
1787
|
+
],
|
|
1788
|
+
"description": "One page of account records."
|
|
1789
|
+
}
|
|
1790
|
+
},
|
|
1791
|
+
{
|
|
1792
|
+
"id": "futunn.list_positions",
|
|
1793
|
+
"service": "futunn",
|
|
1794
|
+
"name": "list_positions",
|
|
1795
|
+
"description": "List account positions, optionally filtered by security code and profit/loss ratio.",
|
|
1796
|
+
"operationType": "read",
|
|
1797
|
+
"requiredScopes": [
|
|
1798
|
+
"trade:read"
|
|
1799
|
+
],
|
|
1800
|
+
"providerPermissions": [],
|
|
1801
|
+
"inputSchema": {
|
|
1802
|
+
"type": "object",
|
|
1803
|
+
"properties": {
|
|
1804
|
+
"accountId": {
|
|
1805
|
+
"type": "string",
|
|
1806
|
+
"minLength": 1,
|
|
1807
|
+
"description": "Trading account ID returned by list_accounts, kept as a decimal string.",
|
|
1808
|
+
"pattern": "^[0-9]+$"
|
|
1809
|
+
},
|
|
1810
|
+
"code": {
|
|
1811
|
+
"type": "string",
|
|
1812
|
+
"minLength": 1,
|
|
1813
|
+
"description": "Security code with market prefix, for example US.AAPL or HK.00700."
|
|
1814
|
+
},
|
|
1815
|
+
"plRatioMin": {
|
|
1816
|
+
"type": "string",
|
|
1817
|
+
"description": "Minimum profit/loss percentage as a decimal string, for example 10."
|
|
1818
|
+
},
|
|
1819
|
+
"plRatioMax": {
|
|
1820
|
+
"type": "string",
|
|
1821
|
+
"description": "Maximum profit/loss percentage as a decimal string, for example 20."
|
|
1822
|
+
}
|
|
1823
|
+
},
|
|
1824
|
+
"additionalProperties": false,
|
|
1825
|
+
"required": [
|
|
1826
|
+
"accountId"
|
|
1827
|
+
],
|
|
1828
|
+
"description": "Account position query."
|
|
1829
|
+
},
|
|
1830
|
+
"outputSchema": {
|
|
1831
|
+
"type": "object",
|
|
1832
|
+
"properties": {
|
|
1833
|
+
"positions": {
|
|
1834
|
+
"type": "array",
|
|
1835
|
+
"items": {
|
|
1836
|
+
"type": "object",
|
|
1837
|
+
"properties": {
|
|
1838
|
+
"code": {
|
|
1839
|
+
"type": "string",
|
|
1840
|
+
"minLength": 1,
|
|
1841
|
+
"description": "Security code with market prefix, for example US.AAPL or HK.00700."
|
|
1842
|
+
},
|
|
1843
|
+
"stock_name": {
|
|
1844
|
+
"type": "string",
|
|
1845
|
+
"description": "Security name."
|
|
1846
|
+
},
|
|
1847
|
+
"qty": {
|
|
1848
|
+
"type": "string",
|
|
1849
|
+
"description": "Position quantity as a decimal string."
|
|
1850
|
+
},
|
|
1851
|
+
"cost_price": {
|
|
1852
|
+
"type": "string",
|
|
1853
|
+
"description": "Position cost price as a decimal string."
|
|
1854
|
+
},
|
|
1855
|
+
"cost_price_valid": {
|
|
1856
|
+
"type": "boolean",
|
|
1857
|
+
"description": "Whether the cost price is valid."
|
|
1858
|
+
},
|
|
1859
|
+
"pl_val": {
|
|
1860
|
+
"type": "string",
|
|
1861
|
+
"description": "Profit or loss as a decimal string."
|
|
1862
|
+
},
|
|
1863
|
+
"pl_val_valid": {
|
|
1864
|
+
"type": "boolean",
|
|
1865
|
+
"description": "Whether the profit or loss value is valid."
|
|
1866
|
+
}
|
|
1867
|
+
},
|
|
1868
|
+
"additionalProperties": true,
|
|
1869
|
+
"description": "Position details with additional provider fields."
|
|
1870
|
+
},
|
|
1871
|
+
"description": "Positions with upstream quantities, prices and profit/loss decimal strings."
|
|
1872
|
+
}
|
|
1873
|
+
},
|
|
1874
|
+
"additionalProperties": false,
|
|
1875
|
+
"required": [
|
|
1876
|
+
"positions"
|
|
1877
|
+
],
|
|
1878
|
+
"description": "Account position results."
|
|
1879
|
+
}
|
|
1880
|
+
},
|
|
1881
|
+
{
|
|
1882
|
+
"id": "futunn.list_today_deals",
|
|
1883
|
+
"service": "futunn",
|
|
1884
|
+
"name": "list_today_deals",
|
|
1885
|
+
"description": "List today's execution fills for a trading account.",
|
|
1886
|
+
"operationType": "read",
|
|
1887
|
+
"requiredScopes": [
|
|
1888
|
+
"trade:read"
|
|
1889
|
+
],
|
|
1890
|
+
"providerPermissions": [],
|
|
1891
|
+
"inputSchema": {
|
|
1892
|
+
"type": "object",
|
|
1893
|
+
"properties": {
|
|
1894
|
+
"accountId": {
|
|
1895
|
+
"type": "string",
|
|
1896
|
+
"description": "Trading account ID as a decimal string.",
|
|
1897
|
+
"pattern": "^[0-9]+$"
|
|
1898
|
+
},
|
|
1899
|
+
"market": {
|
|
1900
|
+
"type": "string",
|
|
1901
|
+
"enum": [
|
|
1902
|
+
"NONE",
|
|
1903
|
+
"HK",
|
|
1904
|
+
"US",
|
|
1905
|
+
"SG",
|
|
1906
|
+
"HKCC",
|
|
1907
|
+
"CA",
|
|
1908
|
+
"FUTURES",
|
|
1909
|
+
"JP",
|
|
1910
|
+
"KR",
|
|
1911
|
+
"MY",
|
|
1912
|
+
"AU"
|
|
1913
|
+
],
|
|
1914
|
+
"description": "Trading market; HKCC denotes China Stock Connect."
|
|
1915
|
+
},
|
|
1916
|
+
"pageFlag": {
|
|
1917
|
+
"type": "string",
|
|
1918
|
+
"description": "Opaque page flag; omit or use an empty string for the first page."
|
|
1919
|
+
},
|
|
1920
|
+
"pageSize": {
|
|
1921
|
+
"type": "integer",
|
|
1922
|
+
"minimum": 10,
|
|
1923
|
+
"maximum": 100,
|
|
1924
|
+
"description": "Page size; default 50, range 10-100."
|
|
1925
|
+
}
|
|
1926
|
+
},
|
|
1927
|
+
"additionalProperties": false,
|
|
1928
|
+
"required": [
|
|
1929
|
+
"accountId",
|
|
1930
|
+
"market"
|
|
1931
|
+
],
|
|
1932
|
+
"description": "Account order or fill query."
|
|
1933
|
+
},
|
|
1934
|
+
"outputSchema": {
|
|
1935
|
+
"type": "object",
|
|
1936
|
+
"properties": {
|
|
1937
|
+
"deals": {
|
|
1938
|
+
"type": "array",
|
|
1939
|
+
"items": {
|
|
1940
|
+
"type": "object",
|
|
1941
|
+
"properties": {
|
|
1942
|
+
"deal_id": {
|
|
1943
|
+
"type": "string",
|
|
1944
|
+
"description": "Case-sensitive base58 fill ID; preserve exactly."
|
|
1945
|
+
},
|
|
1946
|
+
"order_id": {
|
|
1947
|
+
"type": "string",
|
|
1948
|
+
"description": "Order ID."
|
|
1949
|
+
},
|
|
1950
|
+
"qty": {
|
|
1951
|
+
"type": "string",
|
|
1952
|
+
"description": "Quantity as a decimal string."
|
|
1953
|
+
},
|
|
1954
|
+
"price": {
|
|
1955
|
+
"type": "string",
|
|
1956
|
+
"description": "Price as a decimal string."
|
|
1957
|
+
},
|
|
1958
|
+
"create_time": {
|
|
1959
|
+
"type": "integer",
|
|
1960
|
+
"description": "Creation timestamp in microseconds."
|
|
1961
|
+
}
|
|
1962
|
+
},
|
|
1963
|
+
"additionalProperties": true,
|
|
1964
|
+
"description": "Execution fill record."
|
|
1965
|
+
},
|
|
1966
|
+
"description": "Returned account records in provider order."
|
|
1967
|
+
},
|
|
1968
|
+
"pageFlag": {
|
|
1969
|
+
"anyOf": [
|
|
1970
|
+
{
|
|
1971
|
+
"type": "string",
|
|
1972
|
+
"description": "Next-page flag; null when omitted."
|
|
1973
|
+
},
|
|
1974
|
+
{
|
|
1975
|
+
"type": "null"
|
|
1976
|
+
}
|
|
1977
|
+
]
|
|
1978
|
+
},
|
|
1979
|
+
"completed": {
|
|
1980
|
+
"anyOf": [
|
|
1981
|
+
{
|
|
1982
|
+
"type": "boolean",
|
|
1983
|
+
"description": "True means this batch is complete; null means the provider omitted the flag."
|
|
1984
|
+
},
|
|
1985
|
+
{
|
|
1986
|
+
"type": "null"
|
|
1987
|
+
}
|
|
1988
|
+
]
|
|
1989
|
+
}
|
|
1990
|
+
},
|
|
1991
|
+
"additionalProperties": false,
|
|
1992
|
+
"required": [
|
|
1993
|
+
"deals",
|
|
1994
|
+
"pageFlag",
|
|
1995
|
+
"completed"
|
|
1996
|
+
],
|
|
1997
|
+
"description": "One page of account records."
|
|
1998
|
+
}
|
|
1999
|
+
},
|
|
2000
|
+
{
|
|
2001
|
+
"id": "futunn.list_trading_days",
|
|
2002
|
+
"service": "futunn",
|
|
2003
|
+
"name": "list_trading_days",
|
|
2004
|
+
"description": "List trading days for a market within an inclusive date range.",
|
|
2005
|
+
"operationType": "read",
|
|
2006
|
+
"requiredScopes": [
|
|
2007
|
+
"quote:read"
|
|
2008
|
+
],
|
|
2009
|
+
"providerPermissions": [],
|
|
2010
|
+
"inputSchema": {
|
|
2011
|
+
"type": "object",
|
|
2012
|
+
"properties": {
|
|
2013
|
+
"market": {
|
|
2014
|
+
"type": "string",
|
|
2015
|
+
"enum": [
|
|
2016
|
+
"HK",
|
|
2017
|
+
"US",
|
|
2018
|
+
"SH",
|
|
2019
|
+
"SZ",
|
|
2020
|
+
"BJ",
|
|
2021
|
+
"SG",
|
|
2022
|
+
"JP",
|
|
2023
|
+
"KR",
|
|
2024
|
+
"CA",
|
|
2025
|
+
"AU",
|
|
2026
|
+
"JP_FUTURE",
|
|
2027
|
+
"SG_FUTURE"
|
|
2028
|
+
],
|
|
2029
|
+
"description": "Market to query."
|
|
2030
|
+
},
|
|
2031
|
+
"start": {
|
|
2032
|
+
"type": "string",
|
|
2033
|
+
"description": "Date in YYYY-MM-DD format in the market timezone.",
|
|
2034
|
+
"format": "date"
|
|
2035
|
+
},
|
|
2036
|
+
"end": {
|
|
2037
|
+
"type": "string",
|
|
2038
|
+
"description": "Date in YYYY-MM-DD format in the market timezone.",
|
|
2039
|
+
"format": "date"
|
|
2040
|
+
}
|
|
2041
|
+
},
|
|
2042
|
+
"additionalProperties": false,
|
|
2043
|
+
"required": [
|
|
2044
|
+
"market",
|
|
2045
|
+
"start",
|
|
2046
|
+
"end"
|
|
2047
|
+
],
|
|
2048
|
+
"description": "Market and date range."
|
|
2049
|
+
},
|
|
2050
|
+
"outputSchema": {
|
|
2051
|
+
"type": "object",
|
|
2052
|
+
"properties": {
|
|
2053
|
+
"tradingDays": {
|
|
2054
|
+
"type": "array",
|
|
2055
|
+
"items": {
|
|
2056
|
+
"type": "object",
|
|
2057
|
+
"properties": {
|
|
2058
|
+
"time": {
|
|
2059
|
+
"type": "string",
|
|
2060
|
+
"description": "Date in YYYY-MM-DD format in the market timezone.",
|
|
2061
|
+
"format": "date"
|
|
2062
|
+
},
|
|
2063
|
+
"trade_date_type": {
|
|
2064
|
+
"type": "string",
|
|
2065
|
+
"description": "Session type, such as WHOLE or MORNING."
|
|
2066
|
+
},
|
|
2067
|
+
"trade_second": {
|
|
2068
|
+
"type": "integer",
|
|
2069
|
+
"description": "Total trading seconds in the session."
|
|
2070
|
+
}
|
|
2071
|
+
},
|
|
2072
|
+
"additionalProperties": true,
|
|
2073
|
+
"description": "Trading day and session details."
|
|
2074
|
+
},
|
|
2075
|
+
"description": "Trading dates with session type and trading seconds."
|
|
2076
|
+
}
|
|
2077
|
+
},
|
|
2078
|
+
"additionalProperties": false,
|
|
2079
|
+
"required": [
|
|
2080
|
+
"tradingDays"
|
|
2081
|
+
],
|
|
2082
|
+
"description": "Trading calendar results."
|
|
2083
|
+
}
|
|
2084
|
+
},
|
|
2085
|
+
{
|
|
2086
|
+
"id": "futunn.screen_stocks",
|
|
2087
|
+
"service": "futunn",
|
|
2088
|
+
"name": "screen_stocks",
|
|
2089
|
+
"description": "Screen securities with combined market, financial and technical conditions.",
|
|
2090
|
+
"operationType": "read",
|
|
2091
|
+
"requiredScopes": [
|
|
2092
|
+
"quote:read"
|
|
2093
|
+
],
|
|
2094
|
+
"providerPermissions": [],
|
|
2095
|
+
"inputSchema": {
|
|
2096
|
+
"type": "object",
|
|
2097
|
+
"properties": {
|
|
2098
|
+
"screenQueries": {
|
|
2099
|
+
"type": "array",
|
|
2100
|
+
"items": {
|
|
2101
|
+
"description": "Exactly one official screening condition branch.",
|
|
2102
|
+
"oneOf": [
|
|
2103
|
+
{
|
|
2104
|
+
"type": "object",
|
|
2105
|
+
"properties": {
|
|
2106
|
+
"simple_field_query": {
|
|
2107
|
+
"type": "object",
|
|
2108
|
+
"properties": {},
|
|
2109
|
+
"additionalProperties": true,
|
|
2110
|
+
"description": "Official simple_field_query payload. Preserve provider field IDs, periods and multiplier-scaled ranges."
|
|
2111
|
+
}
|
|
2112
|
+
},
|
|
2113
|
+
"additionalProperties": false,
|
|
2114
|
+
"required": [
|
|
2115
|
+
"simple_field_query"
|
|
2116
|
+
],
|
|
2117
|
+
"description": "One simple_field_query branch."
|
|
2118
|
+
},
|
|
2119
|
+
{
|
|
2120
|
+
"type": "object",
|
|
2121
|
+
"properties": {
|
|
2122
|
+
"plate_query": {
|
|
2123
|
+
"type": "object",
|
|
2124
|
+
"properties": {},
|
|
2125
|
+
"additionalProperties": true,
|
|
2126
|
+
"description": "Official plate_query payload. Preserve provider field IDs, periods and multiplier-scaled ranges."
|
|
2127
|
+
}
|
|
2128
|
+
},
|
|
2129
|
+
"additionalProperties": false,
|
|
2130
|
+
"required": [
|
|
2131
|
+
"plate_query"
|
|
2132
|
+
],
|
|
2133
|
+
"description": "One plate_query branch."
|
|
2134
|
+
},
|
|
2135
|
+
{
|
|
2136
|
+
"type": "object",
|
|
2137
|
+
"properties": {
|
|
2138
|
+
"simple_property_query": {
|
|
2139
|
+
"type": "object",
|
|
2140
|
+
"properties": {},
|
|
2141
|
+
"additionalProperties": true,
|
|
2142
|
+
"description": "Official simple_property_query payload. Preserve provider field IDs, periods and multiplier-scaled ranges."
|
|
2143
|
+
}
|
|
2144
|
+
},
|
|
2145
|
+
"additionalProperties": false,
|
|
2146
|
+
"required": [
|
|
2147
|
+
"simple_property_query"
|
|
2148
|
+
],
|
|
2149
|
+
"description": "One simple_property_query branch."
|
|
2150
|
+
},
|
|
2151
|
+
{
|
|
2152
|
+
"type": "object",
|
|
2153
|
+
"properties": {
|
|
2154
|
+
"cumulative_property_query": {
|
|
2155
|
+
"type": "object",
|
|
2156
|
+
"properties": {},
|
|
2157
|
+
"additionalProperties": true,
|
|
2158
|
+
"description": "Official cumulative_property_query payload. Preserve provider field IDs, periods and multiplier-scaled ranges."
|
|
2159
|
+
}
|
|
2160
|
+
},
|
|
2161
|
+
"additionalProperties": false,
|
|
2162
|
+
"required": [
|
|
2163
|
+
"cumulative_property_query"
|
|
2164
|
+
],
|
|
2165
|
+
"description": "One cumulative_property_query branch."
|
|
2166
|
+
},
|
|
2167
|
+
{
|
|
2168
|
+
"type": "object",
|
|
2169
|
+
"properties": {
|
|
2170
|
+
"financial_property_query": {
|
|
2171
|
+
"type": "object",
|
|
2172
|
+
"properties": {},
|
|
2173
|
+
"additionalProperties": true,
|
|
2174
|
+
"description": "Official financial_property_query payload. Preserve provider field IDs, periods and multiplier-scaled ranges."
|
|
2175
|
+
}
|
|
2176
|
+
},
|
|
2177
|
+
"additionalProperties": false,
|
|
2178
|
+
"required": [
|
|
2179
|
+
"financial_property_query"
|
|
2180
|
+
],
|
|
2181
|
+
"description": "One financial_property_query branch."
|
|
2182
|
+
},
|
|
2183
|
+
{
|
|
2184
|
+
"type": "object",
|
|
2185
|
+
"properties": {
|
|
2186
|
+
"indicator_positional_query": {
|
|
2187
|
+
"type": "object",
|
|
2188
|
+
"properties": {},
|
|
2189
|
+
"additionalProperties": true,
|
|
2190
|
+
"description": "Official indicator_positional_query payload. Preserve provider field IDs, periods and multiplier-scaled ranges."
|
|
2191
|
+
}
|
|
2192
|
+
},
|
|
2193
|
+
"additionalProperties": false,
|
|
2194
|
+
"required": [
|
|
2195
|
+
"indicator_positional_query"
|
|
2196
|
+
],
|
|
2197
|
+
"description": "One indicator_positional_query branch."
|
|
2198
|
+
},
|
|
2199
|
+
{
|
|
2200
|
+
"type": "object",
|
|
2201
|
+
"properties": {
|
|
2202
|
+
"indicator_pattern_query": {
|
|
2203
|
+
"type": "object",
|
|
2204
|
+
"properties": {},
|
|
2205
|
+
"additionalProperties": true,
|
|
2206
|
+
"description": "Official indicator_pattern_query payload. Preserve provider field IDs, periods and multiplier-scaled ranges."
|
|
2207
|
+
}
|
|
2208
|
+
},
|
|
2209
|
+
"additionalProperties": false,
|
|
2210
|
+
"required": [
|
|
2211
|
+
"indicator_pattern_query"
|
|
2212
|
+
],
|
|
2213
|
+
"description": "One indicator_pattern_query branch."
|
|
2214
|
+
},
|
|
2215
|
+
{
|
|
2216
|
+
"type": "object",
|
|
2217
|
+
"properties": {
|
|
2218
|
+
"featured_property_query": {
|
|
2219
|
+
"type": "object",
|
|
2220
|
+
"properties": {},
|
|
2221
|
+
"additionalProperties": true,
|
|
2222
|
+
"description": "Official featured_property_query payload. Preserve provider field IDs, periods and multiplier-scaled ranges."
|
|
2223
|
+
}
|
|
2224
|
+
},
|
|
2225
|
+
"additionalProperties": false,
|
|
2226
|
+
"required": [
|
|
2227
|
+
"featured_property_query"
|
|
2228
|
+
],
|
|
2229
|
+
"description": "One featured_property_query branch."
|
|
2230
|
+
},
|
|
2231
|
+
{
|
|
2232
|
+
"type": "object",
|
|
2233
|
+
"properties": {
|
|
2234
|
+
"broker_holdings_query": {
|
|
2235
|
+
"type": "object",
|
|
2236
|
+
"properties": {},
|
|
2237
|
+
"additionalProperties": true,
|
|
2238
|
+
"description": "Official broker_holdings_query payload. Preserve provider field IDs, periods and multiplier-scaled ranges."
|
|
2239
|
+
}
|
|
2240
|
+
},
|
|
2241
|
+
"additionalProperties": false,
|
|
2242
|
+
"required": [
|
|
2243
|
+
"broker_holdings_query"
|
|
2244
|
+
],
|
|
2245
|
+
"description": "One broker_holdings_query branch."
|
|
2246
|
+
},
|
|
2247
|
+
{
|
|
2248
|
+
"type": "object",
|
|
2249
|
+
"properties": {
|
|
2250
|
+
"kline_shape_query": {
|
|
2251
|
+
"type": "object",
|
|
2252
|
+
"properties": {},
|
|
2253
|
+
"additionalProperties": true,
|
|
2254
|
+
"description": "Official kline_shape_query payload. Preserve provider field IDs, periods and multiplier-scaled ranges."
|
|
2255
|
+
}
|
|
2256
|
+
},
|
|
2257
|
+
"additionalProperties": false,
|
|
2258
|
+
"required": [
|
|
2259
|
+
"kline_shape_query"
|
|
2260
|
+
],
|
|
2261
|
+
"description": "One kline_shape_query branch."
|
|
2262
|
+
},
|
|
2263
|
+
{
|
|
2264
|
+
"type": "object",
|
|
2265
|
+
"properties": {
|
|
2266
|
+
"option_query": {
|
|
2267
|
+
"type": "object",
|
|
2268
|
+
"properties": {},
|
|
2269
|
+
"additionalProperties": true,
|
|
2270
|
+
"description": "Official option_query payload. Preserve provider field IDs, periods and multiplier-scaled ranges."
|
|
2271
|
+
}
|
|
2272
|
+
},
|
|
2273
|
+
"additionalProperties": false,
|
|
2274
|
+
"required": [
|
|
2275
|
+
"option_query"
|
|
2276
|
+
],
|
|
2277
|
+
"description": "One option_query branch."
|
|
2278
|
+
}
|
|
2279
|
+
]
|
|
2280
|
+
},
|
|
2281
|
+
"description": "Combined screening conditions."
|
|
2282
|
+
},
|
|
2283
|
+
"retrieveQueries": {
|
|
2284
|
+
"type": "array",
|
|
2285
|
+
"items": {
|
|
2286
|
+
"description": "Exactly one official retrieval factor branch.",
|
|
2287
|
+
"oneOf": [
|
|
2288
|
+
{
|
|
2289
|
+
"type": "object",
|
|
2290
|
+
"properties": {
|
|
2291
|
+
"basic_property": {
|
|
2292
|
+
"type": "object",
|
|
2293
|
+
"properties": {},
|
|
2294
|
+
"additionalProperties": true,
|
|
2295
|
+
"description": "Official basic_property payload. Preserve provider field IDs, periods and multiplier-scaled ranges."
|
|
2296
|
+
}
|
|
2297
|
+
},
|
|
2298
|
+
"additionalProperties": false,
|
|
2299
|
+
"required": [
|
|
2300
|
+
"basic_property"
|
|
2301
|
+
],
|
|
2302
|
+
"description": "One basic_property branch."
|
|
2303
|
+
},
|
|
2304
|
+
{
|
|
2305
|
+
"type": "object",
|
|
2306
|
+
"properties": {
|
|
2307
|
+
"simple_property": {
|
|
2308
|
+
"type": "object",
|
|
2309
|
+
"properties": {},
|
|
2310
|
+
"additionalProperties": true,
|
|
2311
|
+
"description": "Official simple_property payload. Preserve provider field IDs, periods and multiplier-scaled ranges."
|
|
2312
|
+
}
|
|
2313
|
+
},
|
|
2314
|
+
"additionalProperties": false,
|
|
2315
|
+
"required": [
|
|
2316
|
+
"simple_property"
|
|
2317
|
+
],
|
|
2318
|
+
"description": "One simple_property branch."
|
|
2319
|
+
},
|
|
2320
|
+
{
|
|
2321
|
+
"type": "object",
|
|
2322
|
+
"properties": {
|
|
2323
|
+
"cumulative_property": {
|
|
2324
|
+
"type": "object",
|
|
2325
|
+
"properties": {},
|
|
2326
|
+
"additionalProperties": true,
|
|
2327
|
+
"description": "Official cumulative_property payload. Preserve provider field IDs, periods and multiplier-scaled ranges."
|
|
2328
|
+
}
|
|
2329
|
+
},
|
|
2330
|
+
"additionalProperties": false,
|
|
2331
|
+
"required": [
|
|
2332
|
+
"cumulative_property"
|
|
2333
|
+
],
|
|
2334
|
+
"description": "One cumulative_property branch."
|
|
2335
|
+
},
|
|
2336
|
+
{
|
|
2337
|
+
"type": "object",
|
|
2338
|
+
"properties": {
|
|
2339
|
+
"financial_property": {
|
|
2340
|
+
"type": "object",
|
|
2341
|
+
"properties": {},
|
|
2342
|
+
"additionalProperties": true,
|
|
2343
|
+
"description": "Official financial_property payload. Preserve provider field IDs, periods and multiplier-scaled ranges."
|
|
2344
|
+
}
|
|
2345
|
+
},
|
|
2346
|
+
"additionalProperties": false,
|
|
2347
|
+
"required": [
|
|
2348
|
+
"financial_property"
|
|
2349
|
+
],
|
|
2350
|
+
"description": "One financial_property branch."
|
|
2351
|
+
},
|
|
2352
|
+
{
|
|
2353
|
+
"type": "object",
|
|
2354
|
+
"properties": {
|
|
2355
|
+
"featured_property": {
|
|
2356
|
+
"type": "object",
|
|
2357
|
+
"properties": {},
|
|
2358
|
+
"additionalProperties": true,
|
|
2359
|
+
"description": "Official featured_property payload. Preserve provider field IDs, periods and multiplier-scaled ranges."
|
|
2360
|
+
}
|
|
2361
|
+
},
|
|
2362
|
+
"additionalProperties": false,
|
|
2363
|
+
"required": [
|
|
2364
|
+
"featured_property"
|
|
2365
|
+
],
|
|
2366
|
+
"description": "One featured_property branch."
|
|
2367
|
+
},
|
|
2368
|
+
{
|
|
2369
|
+
"type": "object",
|
|
2370
|
+
"properties": {
|
|
2371
|
+
"indicator_property": {
|
|
2372
|
+
"type": "object",
|
|
2373
|
+
"properties": {},
|
|
2374
|
+
"additionalProperties": true,
|
|
2375
|
+
"description": "Official indicator_property payload. Preserve provider field IDs, periods and multiplier-scaled ranges."
|
|
2376
|
+
}
|
|
2377
|
+
},
|
|
2378
|
+
"additionalProperties": false,
|
|
2379
|
+
"required": [
|
|
2380
|
+
"indicator_property"
|
|
2381
|
+
],
|
|
2382
|
+
"description": "One indicator_property branch."
|
|
2383
|
+
},
|
|
2384
|
+
{
|
|
2385
|
+
"type": "object",
|
|
2386
|
+
"properties": {
|
|
2387
|
+
"broker_property": {
|
|
2388
|
+
"type": "object",
|
|
2389
|
+
"properties": {},
|
|
2390
|
+
"additionalProperties": true,
|
|
2391
|
+
"description": "Official broker_property payload. Preserve provider field IDs, periods and multiplier-scaled ranges."
|
|
2392
|
+
}
|
|
2393
|
+
},
|
|
2394
|
+
"additionalProperties": false,
|
|
2395
|
+
"required": [
|
|
2396
|
+
"broker_property"
|
|
2397
|
+
],
|
|
2398
|
+
"description": "One broker_property branch."
|
|
2399
|
+
},
|
|
2400
|
+
{
|
|
2401
|
+
"type": "object",
|
|
2402
|
+
"properties": {
|
|
2403
|
+
"kline_shape_property": {
|
|
2404
|
+
"type": "object",
|
|
2405
|
+
"properties": {},
|
|
2406
|
+
"additionalProperties": true,
|
|
2407
|
+
"description": "Official kline_shape_property payload. Preserve provider field IDs, periods and multiplier-scaled ranges."
|
|
2408
|
+
}
|
|
2409
|
+
},
|
|
2410
|
+
"additionalProperties": false,
|
|
2411
|
+
"required": [
|
|
2412
|
+
"kline_shape_property"
|
|
2413
|
+
],
|
|
2414
|
+
"description": "One kline_shape_property branch."
|
|
2415
|
+
},
|
|
2416
|
+
{
|
|
2417
|
+
"type": "object",
|
|
2418
|
+
"properties": {
|
|
2419
|
+
"option_property": {
|
|
2420
|
+
"type": "object",
|
|
2421
|
+
"properties": {},
|
|
2422
|
+
"additionalProperties": true,
|
|
2423
|
+
"description": "Official option_property payload. Preserve provider field IDs, periods and multiplier-scaled ranges."
|
|
2424
|
+
}
|
|
2425
|
+
},
|
|
2426
|
+
"additionalProperties": false,
|
|
2427
|
+
"required": [
|
|
2428
|
+
"option_property"
|
|
2429
|
+
],
|
|
2430
|
+
"description": "One option_property branch."
|
|
2431
|
+
}
|
|
2432
|
+
]
|
|
2433
|
+
},
|
|
2434
|
+
"description": "Factors to return in matching order."
|
|
2435
|
+
},
|
|
2436
|
+
"sort": {
|
|
2437
|
+
"description": "Sort direction and exactly one supported factor.",
|
|
2438
|
+
"oneOf": [
|
|
2439
|
+
{
|
|
2440
|
+
"type": "object",
|
|
2441
|
+
"properties": {
|
|
2442
|
+
"direction": {
|
|
2443
|
+
"type": "integer",
|
|
2444
|
+
"description": "1=ascending, 2=descending, 3=absolute ascending, 4=absolute descending.",
|
|
2445
|
+
"enum": [
|
|
2446
|
+
1,
|
|
2447
|
+
2,
|
|
2448
|
+
3,
|
|
2449
|
+
4
|
|
2450
|
+
]
|
|
2451
|
+
},
|
|
2452
|
+
"simple_property": {
|
|
2453
|
+
"type": "object",
|
|
2454
|
+
"properties": {},
|
|
2455
|
+
"additionalProperties": true,
|
|
2456
|
+
"description": "Official sort factor, including name and any required period."
|
|
2457
|
+
}
|
|
2458
|
+
},
|
|
2459
|
+
"additionalProperties": false,
|
|
2460
|
+
"required": [
|
|
2461
|
+
"direction",
|
|
2462
|
+
"simple_property"
|
|
2463
|
+
],
|
|
2464
|
+
"description": "Sort by simple_property."
|
|
2465
|
+
},
|
|
2466
|
+
{
|
|
2467
|
+
"type": "object",
|
|
2468
|
+
"properties": {
|
|
2469
|
+
"direction": {
|
|
2470
|
+
"type": "integer",
|
|
2471
|
+
"description": "1=ascending, 2=descending, 3=absolute ascending, 4=absolute descending.",
|
|
2472
|
+
"enum": [
|
|
2473
|
+
1,
|
|
2474
|
+
2,
|
|
2475
|
+
3,
|
|
2476
|
+
4
|
|
2477
|
+
]
|
|
2478
|
+
},
|
|
2479
|
+
"cumulative_property": {
|
|
2480
|
+
"type": "object",
|
|
2481
|
+
"properties": {},
|
|
2482
|
+
"additionalProperties": true,
|
|
2483
|
+
"description": "Official sort factor, including name and any required period."
|
|
2484
|
+
}
|
|
2485
|
+
},
|
|
2486
|
+
"additionalProperties": false,
|
|
2487
|
+
"required": [
|
|
2488
|
+
"direction",
|
|
2489
|
+
"cumulative_property"
|
|
2490
|
+
],
|
|
2491
|
+
"description": "Sort by cumulative_property."
|
|
2492
|
+
},
|
|
2493
|
+
{
|
|
2494
|
+
"type": "object",
|
|
2495
|
+
"properties": {
|
|
2496
|
+
"direction": {
|
|
2497
|
+
"type": "integer",
|
|
2498
|
+
"description": "1=ascending, 2=descending, 3=absolute ascending, 4=absolute descending.",
|
|
2499
|
+
"enum": [
|
|
2500
|
+
1,
|
|
2501
|
+
2,
|
|
2502
|
+
3,
|
|
2503
|
+
4
|
|
2504
|
+
]
|
|
2505
|
+
},
|
|
2506
|
+
"financial_property": {
|
|
2507
|
+
"type": "object",
|
|
2508
|
+
"properties": {},
|
|
2509
|
+
"additionalProperties": true,
|
|
2510
|
+
"description": "Official sort factor, including name and any required period."
|
|
2511
|
+
}
|
|
2512
|
+
},
|
|
2513
|
+
"additionalProperties": false,
|
|
2514
|
+
"required": [
|
|
2515
|
+
"direction",
|
|
2516
|
+
"financial_property"
|
|
2517
|
+
],
|
|
2518
|
+
"description": "Sort by financial_property."
|
|
2519
|
+
},
|
|
2520
|
+
{
|
|
2521
|
+
"type": "object",
|
|
2522
|
+
"properties": {
|
|
2523
|
+
"direction": {
|
|
2524
|
+
"type": "integer",
|
|
2525
|
+
"description": "1=ascending, 2=descending, 3=absolute ascending, 4=absolute descending.",
|
|
2526
|
+
"enum": [
|
|
2527
|
+
1,
|
|
2528
|
+
2,
|
|
2529
|
+
3,
|
|
2530
|
+
4
|
|
2531
|
+
]
|
|
2532
|
+
},
|
|
2533
|
+
"featured_property": {
|
|
2534
|
+
"type": "object",
|
|
2535
|
+
"properties": {},
|
|
2536
|
+
"additionalProperties": true,
|
|
2537
|
+
"description": "Official sort factor, including name and any required period."
|
|
2538
|
+
}
|
|
2539
|
+
},
|
|
2540
|
+
"additionalProperties": false,
|
|
2541
|
+
"required": [
|
|
2542
|
+
"direction",
|
|
2543
|
+
"featured_property"
|
|
2544
|
+
],
|
|
2545
|
+
"description": "Sort by featured_property."
|
|
2546
|
+
}
|
|
2547
|
+
]
|
|
2548
|
+
},
|
|
2549
|
+
"sorts": {
|
|
2550
|
+
"type": "array",
|
|
2551
|
+
"items": {
|
|
2552
|
+
"description": "Sort direction and exactly one supported factor.",
|
|
2553
|
+
"oneOf": [
|
|
2554
|
+
{
|
|
2555
|
+
"type": "object",
|
|
2556
|
+
"properties": {
|
|
2557
|
+
"direction": {
|
|
2558
|
+
"type": "integer",
|
|
2559
|
+
"description": "1=ascending, 2=descending, 3=absolute ascending, 4=absolute descending.",
|
|
2560
|
+
"enum": [
|
|
2561
|
+
1,
|
|
2562
|
+
2,
|
|
2563
|
+
3,
|
|
2564
|
+
4
|
|
2565
|
+
]
|
|
2566
|
+
},
|
|
2567
|
+
"simple_property": {
|
|
2568
|
+
"type": "object",
|
|
2569
|
+
"properties": {},
|
|
2570
|
+
"additionalProperties": true,
|
|
2571
|
+
"description": "Official sort factor, including name and any required period."
|
|
2572
|
+
}
|
|
2573
|
+
},
|
|
2574
|
+
"additionalProperties": false,
|
|
2575
|
+
"required": [
|
|
2576
|
+
"direction",
|
|
2577
|
+
"simple_property"
|
|
2578
|
+
],
|
|
2579
|
+
"description": "Sort by simple_property."
|
|
2580
|
+
},
|
|
2581
|
+
{
|
|
2582
|
+
"type": "object",
|
|
2583
|
+
"properties": {
|
|
2584
|
+
"direction": {
|
|
2585
|
+
"type": "integer",
|
|
2586
|
+
"description": "1=ascending, 2=descending, 3=absolute ascending, 4=absolute descending.",
|
|
2587
|
+
"enum": [
|
|
2588
|
+
1,
|
|
2589
|
+
2,
|
|
2590
|
+
3,
|
|
2591
|
+
4
|
|
2592
|
+
]
|
|
2593
|
+
},
|
|
2594
|
+
"cumulative_property": {
|
|
2595
|
+
"type": "object",
|
|
2596
|
+
"properties": {},
|
|
2597
|
+
"additionalProperties": true,
|
|
2598
|
+
"description": "Official sort factor, including name and any required period."
|
|
2599
|
+
}
|
|
2600
|
+
},
|
|
2601
|
+
"additionalProperties": false,
|
|
2602
|
+
"required": [
|
|
2603
|
+
"direction",
|
|
2604
|
+
"cumulative_property"
|
|
2605
|
+
],
|
|
2606
|
+
"description": "Sort by cumulative_property."
|
|
2607
|
+
},
|
|
2608
|
+
{
|
|
2609
|
+
"type": "object",
|
|
2610
|
+
"properties": {
|
|
2611
|
+
"direction": {
|
|
2612
|
+
"type": "integer",
|
|
2613
|
+
"description": "1=ascending, 2=descending, 3=absolute ascending, 4=absolute descending.",
|
|
2614
|
+
"enum": [
|
|
2615
|
+
1,
|
|
2616
|
+
2,
|
|
2617
|
+
3,
|
|
2618
|
+
4
|
|
2619
|
+
]
|
|
2620
|
+
},
|
|
2621
|
+
"financial_property": {
|
|
2622
|
+
"type": "object",
|
|
2623
|
+
"properties": {},
|
|
2624
|
+
"additionalProperties": true,
|
|
2625
|
+
"description": "Official sort factor, including name and any required period."
|
|
2626
|
+
}
|
|
2627
|
+
},
|
|
2628
|
+
"additionalProperties": false,
|
|
2629
|
+
"required": [
|
|
2630
|
+
"direction",
|
|
2631
|
+
"financial_property"
|
|
2632
|
+
],
|
|
2633
|
+
"description": "Sort by financial_property."
|
|
2634
|
+
},
|
|
2635
|
+
{
|
|
2636
|
+
"type": "object",
|
|
2637
|
+
"properties": {
|
|
2638
|
+
"direction": {
|
|
2639
|
+
"type": "integer",
|
|
2640
|
+
"description": "1=ascending, 2=descending, 3=absolute ascending, 4=absolute descending.",
|
|
2641
|
+
"enum": [
|
|
2642
|
+
1,
|
|
2643
|
+
2,
|
|
2644
|
+
3,
|
|
2645
|
+
4
|
|
2646
|
+
]
|
|
2647
|
+
},
|
|
2648
|
+
"featured_property": {
|
|
2649
|
+
"type": "object",
|
|
2650
|
+
"properties": {},
|
|
2651
|
+
"additionalProperties": true,
|
|
2652
|
+
"description": "Official sort factor, including name and any required period."
|
|
2653
|
+
}
|
|
2654
|
+
},
|
|
2655
|
+
"additionalProperties": false,
|
|
2656
|
+
"required": [
|
|
2657
|
+
"direction",
|
|
2658
|
+
"featured_property"
|
|
2659
|
+
],
|
|
2660
|
+
"description": "Sort by featured_property."
|
|
2661
|
+
}
|
|
2662
|
+
]
|
|
2663
|
+
},
|
|
2664
|
+
"description": "Ordered multi-factor sorting; do not combine with sort."
|
|
2665
|
+
},
|
|
2666
|
+
"nextKey": {
|
|
2667
|
+
"type": "string",
|
|
2668
|
+
"description": "Opaque next-page cursor; omit for the first page."
|
|
2669
|
+
},
|
|
2670
|
+
"limit": {
|
|
2671
|
+
"type": "integer",
|
|
2672
|
+
"minimum": 1,
|
|
2673
|
+
"maximum": 300,
|
|
2674
|
+
"description": "Page size; default 200, maximum 300."
|
|
2675
|
+
},
|
|
2676
|
+
"watchlistStockIds": {
|
|
2677
|
+
"type": "array",
|
|
2678
|
+
"items": {
|
|
2679
|
+
"type": "integer",
|
|
2680
|
+
"description": "Provider security ID."
|
|
2681
|
+
},
|
|
2682
|
+
"description": "Security IDs for watchlist mode 1."
|
|
2683
|
+
},
|
|
2684
|
+
"holdingStockIds": {
|
|
2685
|
+
"type": "array",
|
|
2686
|
+
"items": {
|
|
2687
|
+
"type": "integer",
|
|
2688
|
+
"description": "Provider security ID."
|
|
2689
|
+
},
|
|
2690
|
+
"description": "Security IDs for holdings mode 2."
|
|
2691
|
+
},
|
|
2692
|
+
"userStockListMode": {
|
|
2693
|
+
"type": "integer",
|
|
2694
|
+
"description": "0=all securities, 1=watchlist, 2=holdings.",
|
|
2695
|
+
"enum": [
|
|
2696
|
+
0,
|
|
2697
|
+
1,
|
|
2698
|
+
2
|
|
2699
|
+
]
|
|
2700
|
+
}
|
|
2701
|
+
},
|
|
2702
|
+
"additionalProperties": false,
|
|
2703
|
+
"required": [
|
|
2704
|
+
"screenQueries"
|
|
2705
|
+
],
|
|
2706
|
+
"description": "Stock screening options. Factor IDs and scaling follow https://open.futunn.com/api/quote/screening/stock-screen.",
|
|
2707
|
+
"not": {
|
|
2708
|
+
"required": [
|
|
2709
|
+
"sort",
|
|
2710
|
+
"sorts"
|
|
2711
|
+
]
|
|
2712
|
+
}
|
|
2713
|
+
},
|
|
2714
|
+
"outputSchema": {
|
|
2715
|
+
"type": "object",
|
|
2716
|
+
"properties": {
|
|
2717
|
+
"items": {
|
|
2718
|
+
"type": "array",
|
|
2719
|
+
"items": {
|
|
2720
|
+
"type": "object",
|
|
2721
|
+
"properties": {
|
|
2722
|
+
"code": {
|
|
2723
|
+
"type": "string",
|
|
2724
|
+
"minLength": 1,
|
|
2725
|
+
"description": "Security code including market prefix, for example HK.00700."
|
|
2726
|
+
},
|
|
2727
|
+
"name": {
|
|
2728
|
+
"type": "string",
|
|
2729
|
+
"description": "Security name."
|
|
2730
|
+
},
|
|
2731
|
+
"results": {
|
|
2732
|
+
"type": "array",
|
|
2733
|
+
"items": {
|
|
2734
|
+
"type": "object",
|
|
2735
|
+
"properties": {},
|
|
2736
|
+
"additionalProperties": true,
|
|
2737
|
+
"description": "Provider record with additional fields preserved."
|
|
2738
|
+
},
|
|
2739
|
+
"description": "Returned factor values and type information."
|
|
2740
|
+
}
|
|
2741
|
+
},
|
|
2742
|
+
"additionalProperties": true,
|
|
2743
|
+
"description": "Screening result."
|
|
2744
|
+
},
|
|
2745
|
+
"description": "Matched securities; results align with retrieveQueries and retain provider-scaled values."
|
|
2746
|
+
},
|
|
2747
|
+
"pagination": {
|
|
2748
|
+
"anyOf": [
|
|
2749
|
+
{
|
|
2750
|
+
"type": "object",
|
|
2751
|
+
"properties": {
|
|
2752
|
+
"has_more": {
|
|
2753
|
+
"type": "boolean",
|
|
2754
|
+
"description": "Whether more results are available."
|
|
2755
|
+
},
|
|
2756
|
+
"next_key": {
|
|
2757
|
+
"type": "string",
|
|
2758
|
+
"description": "Opaque next-page cursor; omit for the first page."
|
|
2759
|
+
},
|
|
2760
|
+
"total": {
|
|
2761
|
+
"type": "integer",
|
|
2762
|
+
"description": "Total matching records when provided."
|
|
2763
|
+
}
|
|
2764
|
+
},
|
|
2765
|
+
"additionalProperties": true,
|
|
2766
|
+
"description": "Pagination metadata from the response envelope; null when omitted."
|
|
2767
|
+
},
|
|
2768
|
+
{
|
|
2769
|
+
"type": "null"
|
|
2770
|
+
}
|
|
2771
|
+
]
|
|
2772
|
+
}
|
|
2773
|
+
},
|
|
2774
|
+
"additionalProperties": false,
|
|
2775
|
+
"required": [
|
|
2776
|
+
"items",
|
|
2777
|
+
"pagination"
|
|
2778
|
+
],
|
|
2779
|
+
"description": "Screened securities and pagination."
|
|
2780
|
+
}
|
|
2781
|
+
},
|
|
2782
|
+
{
|
|
2783
|
+
"id": "futunn.search_community",
|
|
2784
|
+
"service": "futunn",
|
|
2785
|
+
"name": "search_community",
|
|
2786
|
+
"description": "Search community discussions, topics and live streams by keyword.",
|
|
2787
|
+
"operationType": "read",
|
|
2788
|
+
"requiredScopes": [
|
|
2789
|
+
"quote:read"
|
|
2790
|
+
],
|
|
2791
|
+
"providerPermissions": [],
|
|
2792
|
+
"inputSchema": {
|
|
2793
|
+
"type": "object",
|
|
2794
|
+
"properties": {
|
|
2795
|
+
"keyword": {
|
|
2796
|
+
"type": "string",
|
|
2797
|
+
"minLength": 1,
|
|
2798
|
+
"description": "Search keyword, company name, ticker or topic."
|
|
2799
|
+
},
|
|
2800
|
+
"size": {
|
|
2801
|
+
"type": "integer",
|
|
2802
|
+
"minimum": 1,
|
|
2803
|
+
"maximum": 50,
|
|
2804
|
+
"description": "Number of results; default 10, maximum 50."
|
|
2805
|
+
},
|
|
2806
|
+
"type": {
|
|
2807
|
+
"type": "integer",
|
|
2808
|
+
"description": "Content type: 1=news/discussion, 2=announcement/topic, 3=report/live stream; omit for all.",
|
|
2809
|
+
"enum": [
|
|
2810
|
+
1,
|
|
2811
|
+
2,
|
|
2812
|
+
3
|
|
2813
|
+
]
|
|
2814
|
+
},
|
|
2815
|
+
"sortType": {
|
|
2816
|
+
"type": "integer",
|
|
2817
|
+
"description": "Sort: 1=reads/popularity, 2=latest.",
|
|
2818
|
+
"enum": [
|
|
2819
|
+
1,
|
|
2820
|
+
2
|
|
2821
|
+
]
|
|
2822
|
+
},
|
|
2823
|
+
"language": {
|
|
2824
|
+
"type": "string",
|
|
2825
|
+
"enum": [
|
|
2826
|
+
"zh-CN",
|
|
2827
|
+
"zh-HK",
|
|
2828
|
+
"en",
|
|
2829
|
+
"ja"
|
|
2830
|
+
],
|
|
2831
|
+
"description": "Content language."
|
|
2832
|
+
}
|
|
2833
|
+
},
|
|
2834
|
+
"additionalProperties": false,
|
|
2835
|
+
"required": [
|
|
2836
|
+
"keyword"
|
|
2837
|
+
],
|
|
2838
|
+
"description": "Content search options."
|
|
2839
|
+
},
|
|
2840
|
+
"outputSchema": {
|
|
2841
|
+
"type": "object",
|
|
2842
|
+
"properties": {
|
|
2843
|
+
"items": {
|
|
2844
|
+
"type": "array",
|
|
2845
|
+
"items": {
|
|
2846
|
+
"type": "object",
|
|
2847
|
+
"properties": {
|
|
2848
|
+
"title": {
|
|
2849
|
+
"type": "string",
|
|
2850
|
+
"description": "Title; news titles may contain em highlight tags."
|
|
2851
|
+
},
|
|
2852
|
+
"url": {
|
|
2853
|
+
"type": "string",
|
|
2854
|
+
"description": "Content link."
|
|
2855
|
+
},
|
|
2856
|
+
"publish_time": {
|
|
2857
|
+
"type": "integer",
|
|
2858
|
+
"description": "Publication timestamp in seconds."
|
|
2859
|
+
}
|
|
2860
|
+
},
|
|
2861
|
+
"additionalProperties": true,
|
|
2862
|
+
"description": "Search result with title, link and timestamp."
|
|
2863
|
+
},
|
|
2864
|
+
"description": "Matching content items."
|
|
2865
|
+
}
|
|
2866
|
+
},
|
|
2867
|
+
"additionalProperties": false,
|
|
2868
|
+
"required": [
|
|
2869
|
+
"items"
|
|
2870
|
+
],
|
|
2871
|
+
"description": "Search results."
|
|
2872
|
+
}
|
|
2873
|
+
},
|
|
2874
|
+
{
|
|
2875
|
+
"id": "futunn.search_news",
|
|
2876
|
+
"service": "futunn",
|
|
2877
|
+
"name": "search_news",
|
|
2878
|
+
"description": "Search news, announcements and research reports by keyword.",
|
|
2879
|
+
"operationType": "read",
|
|
2880
|
+
"requiredScopes": [
|
|
2881
|
+
"quote:read"
|
|
2882
|
+
],
|
|
2883
|
+
"providerPermissions": [],
|
|
2884
|
+
"inputSchema": {
|
|
2885
|
+
"type": "object",
|
|
2886
|
+
"properties": {
|
|
2887
|
+
"keyword": {
|
|
2888
|
+
"type": "string",
|
|
2889
|
+
"minLength": 1,
|
|
2890
|
+
"description": "Search keyword, company name, ticker or topic."
|
|
2891
|
+
},
|
|
2892
|
+
"size": {
|
|
2893
|
+
"type": "integer",
|
|
2894
|
+
"minimum": 1,
|
|
2895
|
+
"maximum": 50,
|
|
2896
|
+
"description": "Number of results; default 10, maximum 50."
|
|
2897
|
+
},
|
|
2898
|
+
"type": {
|
|
2899
|
+
"type": "integer",
|
|
2900
|
+
"description": "Content type: 1=news/discussion, 2=announcement/topic, 3=report/live stream; omit for all.",
|
|
2901
|
+
"enum": [
|
|
2902
|
+
1,
|
|
2903
|
+
2,
|
|
2904
|
+
3
|
|
2905
|
+
]
|
|
2906
|
+
},
|
|
2907
|
+
"sortType": {
|
|
2908
|
+
"type": "integer",
|
|
2909
|
+
"description": "Sort: 1=reads/popularity, 2=latest.",
|
|
2910
|
+
"enum": [
|
|
2911
|
+
1,
|
|
2912
|
+
2
|
|
2913
|
+
]
|
|
2914
|
+
},
|
|
2915
|
+
"language": {
|
|
2916
|
+
"type": "string",
|
|
2917
|
+
"enum": [
|
|
2918
|
+
"zh-CN",
|
|
2919
|
+
"zh-HK",
|
|
2920
|
+
"en",
|
|
2921
|
+
"ja"
|
|
2922
|
+
],
|
|
2923
|
+
"description": "Content language."
|
|
2924
|
+
}
|
|
2925
|
+
},
|
|
2926
|
+
"additionalProperties": false,
|
|
2927
|
+
"required": [
|
|
2928
|
+
"keyword"
|
|
2929
|
+
],
|
|
2930
|
+
"description": "Content search options."
|
|
2931
|
+
},
|
|
2932
|
+
"outputSchema": {
|
|
2933
|
+
"type": "object",
|
|
2934
|
+
"properties": {
|
|
2935
|
+
"items": {
|
|
2936
|
+
"type": "array",
|
|
2937
|
+
"items": {
|
|
2938
|
+
"type": "object",
|
|
2939
|
+
"properties": {
|
|
2940
|
+
"title": {
|
|
2941
|
+
"type": "string",
|
|
2942
|
+
"description": "Title; news titles may contain em highlight tags."
|
|
2943
|
+
},
|
|
2944
|
+
"url": {
|
|
2945
|
+
"type": "string",
|
|
2946
|
+
"description": "Content link."
|
|
2947
|
+
},
|
|
2948
|
+
"publish_time": {
|
|
2949
|
+
"type": "integer",
|
|
2950
|
+
"description": "Publication timestamp in seconds."
|
|
2951
|
+
}
|
|
2952
|
+
},
|
|
2953
|
+
"additionalProperties": true,
|
|
2954
|
+
"description": "Search result with title, link and timestamp."
|
|
2955
|
+
},
|
|
2956
|
+
"description": "Matching content items."
|
|
2957
|
+
}
|
|
2958
|
+
},
|
|
2959
|
+
"additionalProperties": false,
|
|
2960
|
+
"required": [
|
|
2961
|
+
"items"
|
|
2962
|
+
],
|
|
2963
|
+
"description": "Search results."
|
|
2964
|
+
}
|
|
2965
|
+
}
|
|
2966
|
+
]
|
|
2967
|
+
}
|