René's URL Explorer Experiment


Title: 示例代码中应该要过滤一下univ中不在quantos中分配策略标的范围中的标的 · Issue #2 · quantOS-org/quantOSUserGuide · GitHub

Open Graph Title: 示例代码中应该要过滤一下univ中不在quantos中分配策略标的范围中的标的 · Issue #2 · quantOS-org/quantOSUserGuide

X Title: 示例代码中应该要过滤一下univ中不在quantos中分配策略标的范围中的标的 · Issue #2 · quantOS-org/quantOSUserGuide

Description: def _to_valide_goals(self, goals_raw): #goals_raw =基于投资范围以及策略选出来的标的 #univ =quantos分配的策略标的 univ, msg = self.ctx.trade_api.query_universe() univ.loc[:, 'size'] = 0.0 univ.loc[:, 'ref_price'] = 0.0 univ = univ.set_index('security').sort_ind...

Open Graph Description: def _to_valide_goals(self, goals_raw): #goals_raw =基于投资范围以及策略选出来的标的 #univ =quantos分配的策略标的 univ, msg = self.ctx.trade_api.query_universe() univ.loc[:, 'size'] = 0.0 univ.loc[:, 'ref_price'] = 0.0 un...

X Description: def _to_valide_goals(self, goals_raw): #goals_raw =基于投资范围以及策略选出来的标的 #univ =quantos分配的策略标的 univ, msg = self.ctx.trade_api.query_universe() univ.loc[:, 'size'] = 0.0 univ.loc[:, 'ref_pric...

Opengraph URL: https://github.com/quantOS-org/quantOSUserGuide/issues/2

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"示例代码中应该要过滤一下univ中不在quantos中分配策略标的范围中的标的","articleBody":"    def _to_valide_goals(self, goals_raw):\r\n        #goals_raw =基于投资范围以及策略选出来的标的\r\n        #univ =quantos分配的策略标的\r\n        univ, msg = self.ctx.trade_api.query_universe()\r\n        univ.loc[:, 'size'] = 0.0\r\n        univ.loc[:, 'ref_price'] = 0.0\r\n        univ = univ.set_index('security').sort_index(axis=0)\r\n        univ = univ[['size', 'ref_price']]\r\n        for d in goals_raw:\r\n            symbol = d['symbol']\r\n            size = d['size']\r\n            # TODO: better method needed\r\n            if symbol in univ.index and symbol in self.univ_price_dic:\r\n                univ.loc[symbol, 'ref_price'] = self.univ_price_dic[symbol]['last']\r\n                if size \u003e 0:\r\n                    univ.loc[symbol, 'size'] = size\r\n        univ = univ[univ['size']\u003e0]  #add by geekgu\r\n        goals_valid = list(univ.reset_index().to_dict(orient='index').values())\r\n        return goals_valid","author":{"url":"https://github.com/geekgu","@type":"Person","name":"geekgu"},"datePublished":"2018-03-06T07:07:29.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/2/quantOSUserGuide/issues/2"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:8da8f47f-85fb-0e0a-06c7-156f1ea634b1
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8784:3B590F:F3665B:141ED27:69717812
html-safe-nonce8e73571696367c9d22d2d5c0cbe28e8785e4d3ede18f9ebfe31f3b5958098e2b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Nzg0OjNCNTkwRjpGMzY2NUI6MTQxRUQyNzo2OTcxNzgxMiIsInZpc2l0b3JfaWQiOiIzMjM3MTkxMDk5ODYzODg5OTM4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac138c35dcad46606c97295749a09eb6d9932e9e95ceb817ca7a5a444c1c7ad249
hovercard-subject-tagissue:302587137
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/quantOS-org/quantOSUserGuide/2/issue_layout
twitter:imagehttps://opengraph.githubassets.com/757b8b1d87bd99f09fe4b056aa5714989b94467597193d2cad11a20bd30e747a/quantOS-org/quantOSUserGuide/issues/2
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/757b8b1d87bd99f09fe4b056aa5714989b94467597193d2cad11a20bd30e747a/quantOS-org/quantOSUserGuide/issues/2
og:image:altdef _to_valide_goals(self, goals_raw): #goals_raw =基于投资范围以及策略选出来的标的 #univ =quantos分配的策略标的 univ, msg = self.ctx.trade_api.query_universe() univ.loc[:, 'size'] = 0.0 univ.loc[:, 'ref_price'] = 0.0 un...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamegeekgu
hostnamegithub.com
expected-hostnamegithub.com
None102ab681b33bed6a87d35dc54dd8200470d7e01648f08979e84415ab67d611aa
turbo-cache-controlno-preview
go-importgithub.com/quantOS-org/quantOSUserGuide git https://github.com/quantOS-org/quantOSUserGuide.git
octolytics-dimension-user_id32634706
octolytics-dimension-user_loginquantOS-org
octolytics-dimension-repository_id112409587
octolytics-dimension-repository_nwoquantOS-org/quantOSUserGuide
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id112409587
octolytics-dimension-repository_network_root_nwoquantOS-org/quantOSUserGuide
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release6a660b76f271bda19afb9f5242b473bfee637a5a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/quantOS-org/quantOSUserGuide/issues/2#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FquantOS-org%2FquantOSUserGuide%2Fissues%2F2
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FquantOS-org%2FquantOSUserGuide%2Fissues%2F2
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=quantOS-org%2FquantOSUserGuide
Reloadhttps://patch-diff.githubusercontent.com/quantOS-org/quantOSUserGuide/issues/2
Reloadhttps://patch-diff.githubusercontent.com/quantOS-org/quantOSUserGuide/issues/2
Reloadhttps://patch-diff.githubusercontent.com/quantOS-org/quantOSUserGuide/issues/2
quantOS-org https://patch-diff.githubusercontent.com/quantOS-org
quantOSUserGuidehttps://patch-diff.githubusercontent.com/quantOS-org/quantOSUserGuide
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2FquantOS-org%2FquantOSUserGuide
Fork 66 https://patch-diff.githubusercontent.com/login?return_to=%2FquantOS-org%2FquantOSUserGuide
Star 156 https://patch-diff.githubusercontent.com/login?return_to=%2FquantOS-org%2FquantOSUserGuide
Code https://patch-diff.githubusercontent.com/quantOS-org/quantOSUserGuide
Issues 2 https://patch-diff.githubusercontent.com/quantOS-org/quantOSUserGuide/issues
Pull requests 0 https://patch-diff.githubusercontent.com/quantOS-org/quantOSUserGuide/pulls
Actions https://patch-diff.githubusercontent.com/quantOS-org/quantOSUserGuide/actions
Projects 0 https://patch-diff.githubusercontent.com/quantOS-org/quantOSUserGuide/projects
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/quantOS-org/quantOSUserGuide/security
Please reload this pagehttps://patch-diff.githubusercontent.com/quantOS-org/quantOSUserGuide/issues/2
Insights https://patch-diff.githubusercontent.com/quantOS-org/quantOSUserGuide/pulse
Code https://patch-diff.githubusercontent.com/quantOS-org/quantOSUserGuide
Issues https://patch-diff.githubusercontent.com/quantOS-org/quantOSUserGuide/issues
Pull requests https://patch-diff.githubusercontent.com/quantOS-org/quantOSUserGuide/pulls
Actions https://patch-diff.githubusercontent.com/quantOS-org/quantOSUserGuide/actions
Projects https://patch-diff.githubusercontent.com/quantOS-org/quantOSUserGuide/projects
Security https://patch-diff.githubusercontent.com/quantOS-org/quantOSUserGuide/security
Insights https://patch-diff.githubusercontent.com/quantOS-org/quantOSUserGuide/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/quantOS-org/quantOSUserGuide/issues/2
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/quantOS-org/quantOSUserGuide/issues/2
示例代码中应该要过滤一下univ中不在quantos中分配策略标的范围中的标的https://patch-diff.githubusercontent.com/quantOS-org/quantOSUserGuide/issues/2#top
https://github.com/geekgu
https://github.com/geekgu
geekguhttps://github.com/geekgu
on Mar 6, 2018https://github.com/quantOS-org/quantOSUserGuide/issues/2#issue-302587137
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.