TradingView 行情、自选、预警与观点
TradingView: Track All Markets 是 TradingView Inc. 的安卓客户端,同一公司还运营 Supercharts 网页终端。用户在多布局图表上画线、维护彩色与自定义自选、设置价格预警、跑股票/外汇/加密筛选器、跟新闻带与经济日历,并发布或评论社区观点;可选 Pro、Premium、Expert 方案放开更多预警、自选与实时行情。券商会深链进同一套图表。全球零售交易者、台桌分析师与业余画图者把它当行情与投研客户端而非券商,与 Investing.com、Yahoo Finance、Bloomberg、MetaTrader 5 并列。
迷你图快照把最新价 lp 与 minmov 钉在给定 resolution 的 history points 上。自选行在 title 与 isActive 下存放 raw 代码;筛选扫描返回 totalCount 以及由 filter、columns、sortBy 决定的逐 symbol 列数组。价格预警携带 alertId、message 与 lastFireTime。日历打印用 actual 对照 forecast 与 previous,并带 importance 与 indicator。新闻项给出 published、storyPath 与嵌套通讯社;观点带 uuid、likesCount 和作者 username。方案表按档给出 watchlistLimit 与 limit。
行情台把最新价分发到自选,宏观机器人在日历实际值偏离预期时提醒,社区页按点赞把观点排在作者用户名旁。openData Studio 把这套报价、预警、筛选与日历表面做成可调用的开放数据。
应用截图
API 端点一览
以下端点与请求/响应示例均依据应用界面推导重构,为示意说明,并非实际抓包。
登录
POST
/v1/traders/session/openosint用 username 与 password 换取会话 Cookie 以及嵌套用户资料(id、username、plan.proPlan、billingCycle)。
认证方式: 无需既有令牌的表单提交。请求体携带 username、password、remember,以及可选的 g-recaptcha-response-s3 与 app_hash。成功后写入会话 Cookie,供后续调用使用。
- username
- password
- remember
- g-recaptcha-response-s3
- app_hash
- error
- code
- detail
- isNewUser
- isSuccessful2fa
- twoFactorTypes
- user
- id
- status
- dateJoined
- followersCount
- followingCount
- isOnline
- lastVisit
- plan
- proPlan
- billingCycle
- merchant
- isRenewalActive
- productId
- subscriptionId
- proPlanExpireOn
POST /v1/traders/session/open HTTP/1.1 Content-Type: application/x-www-form-urlencoded username=chart_desk&password=********&remember=on&g-recaptcha-response-s3=<captcha-token>&app_hash=<app-hash>{ "error": "", "code": "", "detail": "", "isNewUser": false, "isSuccessful2fa": false, "twoFactorTypes": [], "user": { "id": 88421011, "username": "chart_desk", "status": "active", "website": "", "youtubeChannel": "", "dateJoined": "2019-04-12", "followersCount": 128, "followingCount": 44, "isOnline": true, "lastVisit": 1729084800.0, "plan": { "proPlan": "pro", "nextProPlan": "pro_premium", "billingCycle": "annual", "nextBillingCycle": "annual", "merchant": "stripe", "isRenewalActive": true, "isTrialAvailable": false, "productId": "tv-pro-annual", "subscriptionId": "sub_9f3a11", "proPlanExpireOn": 1767225600 } } }自选目录
GET
/v1/watchlistsopendata列出全部自选:id、isActive、title、type、color 以及 items[].raw 代码。
认证方式: 来自 POST /v1/traders/session/open 的会话 Cookie。
- id
- isActive
- title
- type
- color
- items
- raw
GET /v1/watchlists HTTP/1.1 Cookie: session=<session-id> Accept-Language: en[ { "id": "wl_default_1", "isActive": true, "title": "US megacaps", "type": "custom", "color": "blue", "items": [ {"id": "NASDAQ:AAPL", "raw": "NASDAQ:AAPL"}, {"id": "NASDAQ:MSFT", "raw": "NASDAQ:MSFT"} ] } ]报价快照
POST
/v1/quotes/batchopenfinance返回迷你图行:symbol 以及 data.minmov、最新价 data.lp 与 history.resolution 下的 history.points。
认证方式: 会话 Cookie。查询参数 fields 选择 short_name 与 list1_history_last_session_15m;请求体为品种集合。
- fields
- short_name
- list1_history_last_session_15m
- symbol
- data
- minmov
- lp
- history
- points
- futurePointsCount
- resolution
POST /v1/quotes/batch?fields=short_name,list1_history_last_session_15m HTTP/1.1 Cookie: session=<session-id> Content-Type: application/json ["NASDAQ:AAPL","NASDAQ:MSFT"][ { "symbol": "NASDAQ:AAPL", "data": { "minmov": 1, "lp": 227.54, "history": { "points": [[1729083900, 226.10], [1729084800, 227.54]], "futurePointsCount": 0, "resolution": "15" } } } ]品种搜索
GET
/v1/instruments/lookupopendata把 text 查询解析为匹配品种列表(formattedName、exchange、prefix、country、sourceId)。
认证方式: 无需登录的公开搜索。查询参数 text、lang、exchange、broker、unhide、hl、tradable、promo、search_type、sort_by_country、start。
- text
- lang
- exchange
- broker
- unhide
- hl
- tradable
- promo
- search_type
- sort_by_country
- start
- remainingAmount
- list
- promoList
- formattedName
- formattedDescription
- name
- description
- prefix
- icon
- country
- sourceId
- sourceSymbolName
- sourceDescription
- isPromo
- addIndex
GET /v1/instruments/lookup?text=AAPL&lang=en&exchange=NASDAQ&hl=1&search_type=stock&start=0 HTTP/1.1{ "remainingAmount": 12, "list": [ { "formattedName": "AAPL", "formattedDescription": "Apple Inc.", "name": "AAPL", "description": "Apple Inc.", "exchange": "NASDAQ", "prefix": "NASDAQ", "icon": "apple", "country": "US", "sourceId": "NASDAQ", "sourceSymbolName": "AAPL", "sourceDescription": "Apple Inc.", "isPromo": false, "addIndex": 0 } ], "promoList": [] }筛选器扫描
POST
/v1/screener/{market}/queryopenfinance执行市场筛选扫描,返回 totalCount 以及 data[].symbol 与列数组。
认证方式: 会话 Cookie。查询参数 label-product 携带客户端标签。请求体为 JSON 扫描请求。
- filter
- left
- operation
- right
- preset
- columns
- sort
- sortBy
- sortOrder
- nullsFirst
- range
- markets
- ignoreUnknownFields
- indexFilters
- label-product
- data
- symbol
- totalCount
- error
POST /v1/screener/america/query?label-product=<client-label> HTTP/1.1 Cookie: session=<session-id> Content-Type: application/json { "filter": [{"left": "market_cap_basic", "operation": "egreater", "right": "10000000000"}], "preset": "volume_leaders", "columns": ["name", "close", "change", "volume"], "sort": {"sortBy": "volume", "sortOrder": "desc", "nullsFirst": false}, "range": [0, 50], "markets": ["america"], "ignoreUnknownFields": true }{ "data": [ { "symbol": "NASDAQ:AAPL", "data": ["AAPL", 227.54, 1.12, 48211000] } ], "totalCount": 1840, "error": "" }列出价格预警
GET
/v1/alerts/priceopendata返回价格预警行:alertId、symbol、resolution、message、lastFireTime 以及投递开关。
认证方式: 会话 Cookie。查询参数 log_username 标识已登录用户名。
- log_username
- alertId
- symbol
- resolution
- message
- name
- type
- active
- autoDeactivate
- mobilePush
- popup
- webHook
- soundFile
- soundDuration
- createTime
- lastFireTime
- lastError
- kinds
- condition
GET /v1/alerts/price?log_username=chart_desk HTTP/1.1 Cookie: session=<session-id>{ "r": [ { "alertId": 55120019, "symbol": "NASDAQ:AAPL", "resolution": "15", "message": "AAPL crossed 230", "name": "AAPL 230", "type": "price", "active": true, "autoDeactivate": false, "email": true, "mobilePush": true, "popup": false, "webHook": "", "soundFile": "alert/fired", "soundDuration": 0.5, "createTime": "2026-10-01T14:22:00Z", "lastFireTime": "2026-10-16T15:01:11Z", "lastError": "", "kinds": ["cross"] } ] }创建价格预警
POST
/v1/alerts/price/newopendata创建价格预警,返回新的 alertId 以及 symbol、resolution 与投递开关。
认证方式: 会话 Cookie。查询参数 log_username。JSON 请求体使用与列表响应相同的预警字段。
- log_username
- alertId
- symbol
- resolution
- message
- name
- type
- active
- autoDeactivate
- mobilePush
- popup
- webHook
- soundFile
- soundDuration
- createTime
- lastFireTime
POST /v1/alerts/price/new?log_username=chart_desk HTTP/1.1 Cookie: session=<session-id> Content-Type: application/json { "symbol": "NASDAQ:AAPL", "resolution": "15", "message": "AAPL crossed 230", "name": "AAPL 230", "type": "price", "active": true, "autoDeactivate": false, "email": true, "mobilePush": true, "popup": false, "webHook": "", "soundFile": "alert/fired", "soundDuration": 0.5 }{ "alertId": 55120019, "symbol": "NASDAQ:AAPL", "resolution": "15", "message": "AAPL crossed 230", "name": "AAPL 230", "type": "price", "active": true, "email": true, "mobilePush": true, "createTime": "2026-10-17T09:12:00Z", "lastFireTime": "" }新闻流
GET
/v1/news/streamopendata拉取新闻行:id、title、published、storyPath、urgency 以及嵌套 provider(id、name、logoId、url)。
认证方式: 可选会话 Cookie。查询参数 client、filter、id、streaming、user_country、user_prostatus、lang。
- client
- filter
- id
- streaming
- user_country
- user_prostatus
- lang
- link
- title
- published
- storyPath
- language
- permission
- urgency
- isFlash
- isExclusive
- isExternal
- paywall
- copyright
- provider
- name
- logoId
- url
- relatedSymbols
GET /v1/news/stream?client=android&lang=en&user_country=US&user_prostatus=pro&filter=market:stock HTTP/1.1 Cookie: session=<session-id>{ "items": [ { "id": "nws_8f21aa", "link": "https://news.example.com/apple-earnings/", "title": "Apple raises FY guidance", "published": 1729084800, "storyPath": "/news/apple-earnings/", "language": "en", "permission": "headline", "urgency": 1, "isFlash": false, "isExclusive": false, "isExternal": false, "paywall": false, "copyright": "", "provider": { "id": "reuters", "name": "Reuters", "logoId": "reuters", "url": "https://www.reuters.com/" }, "relatedSymbols": ["NASDAQ:AAPL"] } ] }社区观点
GET
/v1/community/ideasosint分页返回社区观点行:uuid、name、likesCount、commentsCount、direction 以及嵌套 user.username。
认证方式: 可选会话 Cookie。查询参数 per_page、sort、market。
- per_page
- sort
- market
- id
- uuid
- name
- description
- dateTimestamp
- updatedDateTimestamp
- likesCount
- commentsCount
- isPublic
- isVisible
- isPicked
- isEducation
- isVideo
- isLiked
- direction
- interval
- chartUrl
- user
- username
- signature
- isUserFollowed
GET /v1/community/ideas?per_page=20&sort=recent&market=stocks HTTP/1.1 Cookie: session=<session-id> Accept-Language: en{ "results": [ { "id": 12004567, "uuid": "idea-9c10-aa11", "name": "AAPL holding 220", "description": "Weekly close above 220 keeps the uptrend.", "dateTimestamp": 1729084800.0, "updatedDateTimestamp": 1729171200.0, "likesCount": 412, "commentsCount": 38, "isPublic": true, "isVisible": true, "isPicked": false, "isEducation": false, "isVideo": false, "isLiked": false, "direction": 1, "interval": "D", "chartUrl": "/x/idea-9c10-aa11/", "user": { "id": 88421011, "username": "chart_desk", "signature": "swing notes", "isUserFollowed": false } } ] }经济日历事件
GET
/v1/calendar/releasesopendata列出经济日历打印:id、indicator、actual 对 forecast 与 previous、importance、country 与 date。
认证方式: 无需登录。查询参数 minImportance、from、to、countries、currencies。
- minImportance
- from
- to
- countries
- currencies
- status
- errMsg
- result
- id
- title
- country
- indicator
- ticker
- category
- comment
- period
- source
- actual
- previous
- forecast
- currency
- unit
- scale
- importance
- date
GET /v1/calendar/releases?minImportance=1&from=2026-10-17T00:00:00Z&to=2026-10-24T00:00:00Z&countries=US,DE¤cies=USD,EUR HTTP/1.1{ "status": "ok", "errMsg": "", "result": [ { "id": "evt_nfp_2026_10", "title": "Nonfarm Payrolls", "country": "US", "indicator": "NFP", "ticker": "ECONOMICS:USNFP", "category": "Employment", "comment": "Change in employed people", "period": "Sep", "source": "BLS", "actual": 254.0, "previous": 142.0, "forecast": 140.0, "currency": "USD", "unit": "K", "scale": "thousand", "importance": 3, "date": "2026-10-03T12:30:00Z" } ] }Pro 方案功能额度
GET
/v1/plans/entitlementsopendata读取各档功能额度(free、pro、proPremium、proExpert)及 limit 与 watchlistLimit。
认证方式: 可选会话 Cookie。
- response
- features
- free
- pro
- proRealtime
- proPremium
- proExpert
- proPremiumExpert
- limit
- childLimit
- primitiveLimit
- complexLimit
- watchlistLimit
GET /v1/plans/entitlements HTTP/1.1 Cookie: session=<session-id>{ "response": { "features": { "free": { "alerts": {"limit": 1, "watchlistLimit": 1}, "watchlists": {"limit": 1, "watchlistLimit": 30} }, "pro": { "alerts": {"limit": 20, "watchlistLimit": 20}, "watchlists": {"limit": 5, "watchlistLimit": 500} }, "proRealtime": { "alerts": {"limit": 20} }, "proPremium": { "alerts": {"limit": 100, "childLimit": 10, "primitiveLimit": 50, "complexLimit": 20} }, "proExpert": { "alerts": {"limit": 400} }, "proPremiumExpert": { "alerts": {"limit": 400, "watchlistLimit": 1000} } } } }
数据类别
- 报价
- 自选
- 预警
- 筛选器
- 新闻
- 观点
- 经济日历
- 方案额度
- 品种
- 登录
数据使用场景与案例
自选最新价分发
投研机器人把自选 items.raw 对到报价快照 lp,在最新价相对 history.points 越过台桌区间时发提醒。
筛选到预警交接
扫描任务保留 filter.left 为成交量的 ScreenerScanResponse 行,并在 totalCount 品种越过 sortBy 列时对 symbol 开出带 mobilePush 的 alertId。
日历意外台
宏观机器人把 indicator 行上的 actual 与 forecast、previous 对齐,在 importance 高且 actual 偏离 forecast 的 NFP 一类打印时触发。
观点作者叠加
社区页把 IdeaUser.username、likesCount、commentsCount 盖到 uuid 卡片上,旁注作者 signature。
常见问题
TradingView 报价快照有哪些字段?
快照行包含 symbol 加上 data.minmov、最新价 data.lp,以及 history.resolution 下的 history.points。fields 查询会要 short_name 与 list1_history_last_session_15m。
除了报价,能否读取自选和价格预警?
可以。自选目录返回 id、isActive、title、type、color 与 items[].raw。价格预警列表给出 alertId、symbol、resolution、message、lastFireTime 以及投递开关(email、mobilePush、popup、webHook)。
TradingView 如何登录?
客户端向登录表单提交 username、password、remember、app_hash 以及可选的验证码令牌(g-recaptcha-response-s3)。成功后写入会话 Cookie,并返回带 id、username 与 plan.proPlan / billingCycle 的用户对象。后续调用带该 Cookie。
筛选器与经济日历有哪些字段?
筛选扫描使用 filter.left/operation/right、columns、sortBy 与 range,返回 totalCount 以及 data[].symbol。日历事件列出 indicator、actual、forecast、previous、importance、country 与 date。
与 TradingView: Track All Markets 相似的应用
- Investing.com: Stock Market — Investing.com 是 Fusion Media 的行情投研应用,覆盖股票、外汇、加密资产等品种,在网页和安卓端提供实时报价、图表、新闻与分析。
- Yahoo Finance — Yahoo Finance 是雅虎的行情应用,提供财经新闻、股票报价、交互图表、筛选器和组合跟踪。
- Bloomberg — Bloomberg 终端向专业交易台提供实时报价、新闻与分析,其安卓和 iOS 应用展示同一套行情数据与自选。
- MetaTrader 5 — Forex, Stocks — MetaTrader 5 是 MetaQuotes 的多资产交易终端,覆盖外汇、股票和期货,带交互图表、智能交易以及券商授权的安卓/iOS 下单客户端。
- thinkorswim — thinkorswim 是嘉信理财随 TD Ameritrade 一并收购的进阶交易平台,用于股票、期权和期货,有桌面、网页和手机客户端。
- Webull — Webull 是面向美国零售投资者的券商应用,可免佣交易美股、ETF 和期权,并在安卓和 iOS 上提供行情工具与模拟交易。
- CoinMarketCap: Crypto Tracker — CoinMarketCap 是加密资产行情站,提供币价、成交额与市值排行,安卓端侧重自选跟踪,而非多资产 Supercharts。
- Finviz — Finviz 是网页端股票投研站,提供筛选器、热力图、图表、新闻以及期货/外汇报价,付费 Elite 档含实时数据与预警。
相关主题
- TradingView API
- TradingView lp 报价
- TradingView 自选 raw
- TradingView alertId
- TradingView 筛选 totalCount
- TradingView 经济日历 actual
- TradingView 观点 uuid
- TradingView 会话登录
需要集成这个 App 的数据 API?
我们可为任意指定 App 交付定制集成——源码交付 USD 500 起,或托管 API 按调用计费。告诉我们您需要的数据即可。
- 每个项目均签 NDA 与 SOW
- 3–7 天交付
- 验收通过后才付款
- 仅在授权范围内作业