René's URL Explorer Experiment


Title: Minor bug in CryptoTrade class not showing symbol · Issue #164 · massive-com/client-python · GitHub

Open Graph Title: Minor bug in CryptoTrade class not showing symbol · Issue #164 · massive-com/client-python

X Title: Minor bug in CryptoTrade class not showing symbol · Issue #164 · massive-com/client-python

Description: Original code @dataclass class CryptoTrade: "CryptoTrade contains trade data for a crypto pair." event_type: Optional[Union[str, EventType]] = None symbol: Optional[str] = None exchange: Optional[int] = None id: Optional[str] = None pric...

Open Graph Description: Original code @dataclass class CryptoTrade: "CryptoTrade contains trade data for a crypto pair." event_type: Optional[Union[str, EventType]] = None symbol: Optional[str] = None exchange: Optional[i...

X Description: Original code @dataclass class CryptoTrade: "CryptoTrade contains trade data for a crypto pair." event_type: Optional[Union[str, EventType]] = None symbol: Optional[str] = None exchange: ...

Opengraph URL: https://github.com/massive-com/client-python/issues/164

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Minor bug in CryptoTrade class not showing symbol","articleBody":"Original code\r\n```\r\n@dataclass\r\nclass CryptoTrade:\r\n    \"CryptoTrade contains trade data for a crypto pair.\"\r\n    event_type: Optional[Union[str, EventType]] = None\r\n    symbol: Optional[str] = None\r\n    exchange: Optional[int] = None\r\n    id: Optional[str] = None\r\n    price: Optional[float] = None\r\n    size: Optional[float] = None\r\n    conditions: Optional[List[int]] = None\r\n    timestamp: Optional[int] = None\r\n    received_timestamp: Optional[int] = None\r\n\r\n    @staticmethod\r\n    def from_dict(d):\r\n        return CryptoTrade(\r\n            d.get(\"ev\", None),\r\n            d.get(\"sym\", None),\r\n            d.get(\"x\", None),\r\n            d.get(\"i\", None),\r\n            d.get(\"p\", None),\r\n            d.get(\"s\", None),\r\n            d.get(\"c\", None),\r\n            d.get(\"t\", None),\r\n            d.get(\"r\", None),\r\n        )\r\n```\r\nProduces the following output\r\n```\r\n\u003cclass 'list'\u003e [CryptoTrade(event_type='XT', symbol=None, exchange=1, id='268292583', price=2668.09, size=0.001, conditions=[1], timestamp=1651897896019, received_timestamp=1651897896029)]\r\n\u003cclass 'list'\u003e [CryptoTrade(event_type='XT', symbol=None, exchange=1, id='268292584', price=2668.09, size=0.00346924, conditions=[1], timestamp=1651897896019, received_timestamp=1651897896029), CryptoTrade(event_type='XT', symbol=None, exchange=1, id='268292585', price=2668.1, size=0.02227499, conditions=[1], timestamp=1651897896019, received_timestamp=1651897029), CryptoTrade(event_type='XT', symbol=None, exchange=1, id='268292587', price=2668.11, size=0.02726552, conditions=[1], timestamp=1651897896019, received_timestamp=1651897896029), CryptoTrade(event_type='XT', symbol=None, exchange=1, id='268292588', price=2668.11, size=0.04693849, conditions=[1], timestamp=1651897896019, received_timestamp=1651897896029), \r\nCryptoTrade(event_type='XT', symbol=None, exchange=1, id='268292589', price=2668.43, size=0.798, conditions=[1], timestamp=1651897896019, received_timestamp=1651897896029)]\r\n\u003cclass 'list'\u003e [CryptoTrade(event_type='XT', symbol=None, exchange=1, id='268292590', price=2668.5, size=0.001, conditions=[1], timestamp=1651897897236, received_timestamp=1651897897245)]\r\n\u003cclass 'list'\u003e [CryptoTrade(event_type='XT', symbol=None, exchange=1, id='268292591', price=2668.5, size=0.001, conditions=[1], timestamp=1651897897236, received_timestamp=1651897897245), CryptoTrade(event_type='XT', symbol=None, exchange=1, id='268292592', price=2668.5, size=0.00173462, conditions=[1], timestamp=1651897897236, received_timestamp=1651897897245), CryptoTrade(event_type='XT', symbol=None, exchange=1, id='268292593', price=2668.63, size=0.02728372, conditions=[1], timestamp=1651897897236, received_timestamp=1651897897245), \r\nCryptoTrade(event_type='XT', symbol=None, exchange=1, id='268292594', price=2668.66, size=0.22281884, conditions=[1], timestamp=1651897897236, received_timestamp=1651897897245)]    \r\n\u003cclass 'list'\u003e [CryptoTrade(event_type='XT', symbol=None, exchange=1, id='268292595', price=2668.54, size=0.001, conditions=[1], timestamp=1651897898157, received_timestamp=1651897898165)]\r\n\u003cclass 'list'\u003e [CryptoTrade(event_type='XT', symbol=None, exchange=1, id='268292596', price=2668.54, size=0.001, conditions=[1], timestamp=1651897898157, received_timestamp=1651897898165), CryptoTrade(event_type='XT', symbol=None, exchange=1, id='268292597', price=2668.54, size=0.00086731, conditions=[1], timestamp=1651897898157, received_timestamp=1651897898165), CryptoTrade(event_type='XT', symbol=None, exchange=1, id='268292598', price=2668.54, size=0.00434975, conditions=[1], timestamp=1651897898157, received_timestamp=1651897898165)]\r\n\u003cclass 'list'\u003e [CryptoTrade(event_type='XT', symbol=None, exchange=1, id='268292599', price=2668.53, size=0.001, conditions=[2], timestamp=1651897898476, received_timestamp=1651897898484)]\r\n\u003cclass 'list'\u003e [CryptoTrade(event_type='XT', symbol=None, exchange=1, id='268292600', price=2668.53, size=0.001, conditions=[2], timestamp=1651897898476, received_timestamp=1651897898485), CryptoTrade(event_type='XT', symbol=None, exchange=1, id='268292601', price=2668.53, size=0.001, conditions=[2], timestamp=1651897898476, received_timestamp=1651897898485), \r\nCryptoTrade(event_type='XT', symbol=None, exchange=1, id='268292602', price=2668.53, size=0.001, conditions=[2], timestamp=1651897898476, received_timestamp=1651897898485)]\r\n\u003cclass 'list'\u003e [CryptoTrade(event_type='XT', symbol=None, exchange=2, id='1085319591', price=35906, size=0.00011582, conditions=[1], timestamp=1651897898715, received_timestamp=1651897898770)]\r\n\u003cclass 'list'\u003e [CryptoTrade(event_type='XT', symbol=None, exchange=2, id='1085319591', price=35906, size=0.00011582, conditions=[1], timestamp=1651897898715, received_timestamp=1651897898831)]\r\n\u003cclass 'list'\u003e [CryptoTrade(event_type='XT', symbol=None, exchange=1, id='327314603', price=35865.06, size=0.00277459, conditions=[1], timestamp=1651897898938, received_timestamp=1651897898949)]\r\n\u003cclass 'list'\u003e [CryptoTrade(event_type='XT', symbol=None, exchange=23, id='9a80e301-cb88-4bbe-b7cf-3e413d7f3714', price=2665.99, size=0.10262799, conditions=[2], timestamp=1651897898915, received_timestamp=1651897898962)]\r\n\u003cclass 'list'\u003e [CryptoTrade(event_type='XT', symbol=None, exchange=1, id='268292603', price=2668.51, size=0.19709093, conditions=[1], timestamp=1651897899222, received_timestamp=1651897899230)]\r\n\u003cclass 'list'\u003e [CryptoTrade(event_type='XT', symbol=None, exchange=23, id='943715f5-6603-4e55-b541-be84cc8e1f19', price=2666.42, size=0.04301937, conditions=[2], timestamp=1651897899482, received_timestamp=1651897899529)]\r\n```\r\n\r\nshould change  ```d.get(\"sym\", None)``` to ``` d.get(\"pair\", None)```\r\n```\r\n@dataclass\r\nclass CryptoTrade:\r\n    \"CryptoTrade contains trade data for a crypto pair.\"\r\n    event_type: Optional[Union[str, EventType]] = None\r\n    symbol: Optional[str] = None\r\n    exchange: Optional[int] = None\r\n    id: Optional[str] = None\r\n    price: Optional[float] = None\r\n    size: Optional[float] = None\r\n    conditions: Optional[List[int]] = None\r\n    timestamp: Optional[int] = None\r\n    received_timestamp: Optional[int] = None\r\n\r\n    @staticmethod\r\n    def from_dict(d):\r\n        return CryptoTrade(\r\n            d.get(\"ev\", None),\r\n            d.get(\"pair\", None),\r\n            d.get(\"x\", None),\r\n            d.get(\"i\", None),\r\n            d.get(\"p\", None),\r\n            d.get(\"s\", None),\r\n            d.get(\"c\", None),\r\n            d.get(\"t\", None),\r\n            d.get(\"r\", None),\r\n        )\r\n```\r\n\r\nNow output is okay\r\n```\r\n\u003cclass 'list'\u003e [CryptoTrade(event_type='XT', symbol='BTC-USD', exchange=1, id='327315546', price=35803.34, size=0.00058953, conditions=[2], timestamp=1651898146638, received_timestamp=1651898146647)]\r\n\u003cclass 'list'\u003e [CryptoTrade(event_type='XT', symbol='BTC-USD', exchange=1, id='327315547', price=35804.81, size=0.001, conditions=[1], timestamp=1651898146642, received_timestamp=1651898146652)]\r\n\u003cclass 'list'\u003e [CryptoTrade(event_type='XT', symbol='BTC-USD', exchange=1, id='327315548', price=35804.82, size=0.00169632, conditions=[1], timestamp=1651898146642, received_timestamp=1651898146652)]\r\n\u003cclass 'list'\u003e [CryptoTrade(event_type='XT', symbol='BTC-USD', exchange=1, id='327315549', price=35804.81, size=0.01368515, conditions=[1], timestamp=1651898147259, received_timestamp=1651898147268)]\r\n\u003cclass 'list'\u003e [CryptoTrade(event_type='XT', symbol='BTC-USD', exchange=1, id='327315550', price=35803.81, size=2.358e-05, conditions=[2], timestamp=1651898147312, received_timestamp=1651898147320)]\r\n\u003cclass 'list'\u003e [CryptoTrade(event_type='XT', symbol='ETH-USD', exchange=1, id='268293802', price=2663.29, size=0.001, conditions=[1], timestamp=1651898148429, received_timestamp=1651898148437)]\r\n\u003cclass 'list'\u003e [CryptoTrade(event_type='XT', symbol='ETH-USD', exchange=1, id='268293803', price=2663.35, size=0.02727959, conditions=[2], timestamp=1651898148472, received_timestamp=1651898148480)]\r\n\u003cclass 'list'\u003e [CryptoTrade(event_type='XT', symbol='BTC-USD', exchange=1, id='327315551', price=35805.95, size=0.00065328, conditions=[1], timestamp=1651898148604, received_timestamp=1651898148612)]\r\n\u003cclass 'list'\u003e [CryptoTrade(event_type='XT', symbol='BTC-USD', exchange=1, id='327315552', price=35805.95, size=0.00025053, conditions=[1], timestamp=1651898148808, received_timestamp=1651898148818)]\r\n```","author":{"url":"https://github.com/dobizz","@type":"Person","name":"dobizz"},"datePublished":"2022-05-07T04:43:27.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/164/client-python/issues/164"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:4ddb61ad-f788-10ef-745a-e3502e9d50c3
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD3C4:B6221:BED450:111EB23:6A4E4903
html-safe-nonce968f46347676ffa51f47e4be7213dd08815a03f499d2447be86c2edca5686202
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEM0M0OkI2MjIxOkJFRDQ1MDoxMTFFQjIzOjZBNEU0OTAzIiwidmlzaXRvcl9pZCI6Ijg1NzgyOTc1OTAzNDg0MDA4OTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac0c8d4f20d732eeef261ba739b3a471edb8b7d57ba19f356e020b7825e5a923de
hovercard-subject-tagissue:1228525308
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/massive-com/client-python/164/issue_layout
twitter:imagehttps://opengraph.githubassets.com/6b2f5516982117ba23ab744bde7d79a853b4315ca20bb31c605c5ec86fe313ef/massive-com/client-python/issues/164
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6b2f5516982117ba23ab744bde7d79a853b4315ca20bb31c605c5ec86fe313ef/massive-com/client-python/issues/164
og:image:altOriginal code @dataclass class CryptoTrade: "CryptoTrade contains trade data for a crypto pair." event_type: Optional[Union[str, EventType]] = None symbol: Optional[str] = None exchange: Optional[i...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedobizz
hostnamegithub.com
expected-hostnamegithub.com
None030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0
turbo-cache-controlno-preview
go-importgithub.com/massive-com/client-python git https://github.com/massive-com/client-python.git
octolytics-dimension-user_id191946194
octolytics-dimension-user_loginmassive-com
octolytics-dimension-repository_id216660192
octolytics-dimension-repository_nwomassive-com/client-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id216660192
octolytics-dimension-repository_network_root_nwomassive-com/client-python
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
releasee8506f6d0538364886e3f0153c154c410965e70d
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/massive-com/client-python/issues/164#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmassive-com%2Fclient-python%2Fissues%2F164
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
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://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmassive-com%2Fclient-python%2Fissues%2F164
Sign up https://github.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=massive-com%2Fclient-python
Reloadhttps://github.com/massive-com/client-python/issues/164
Reloadhttps://github.com/massive-com/client-python/issues/164
Reloadhttps://github.com/massive-com/client-python/issues/164
Please reload this pagehttps://github.com/massive-com/client-python/issues/164
massive-com https://github.com/massive-com
client-pythonhttps://github.com/massive-com/client-python
Notifications https://github.com/login?return_to=%2Fmassive-com%2Fclient-python
Fork 356 https://github.com/login?return_to=%2Fmassive-com%2Fclient-python
Star 1.5k https://github.com/login?return_to=%2Fmassive-com%2Fclient-python
Code https://github.com/massive-com/client-python
Issues 12 https://github.com/massive-com/client-python/issues
Pull requests 6 https://github.com/massive-com/client-python/pulls
Actions https://github.com/massive-com/client-python/actions
Security and quality 0 https://github.com/massive-com/client-python/security
Insights https://github.com/massive-com/client-python/pulse
Code https://github.com/massive-com/client-python
Issues https://github.com/massive-com/client-python/issues
Pull requests https://github.com/massive-com/client-python/pulls
Actions https://github.com/massive-com/client-python/actions
Security and quality https://github.com/massive-com/client-python/security
Insights https://github.com/massive-com/client-python/pulse
#168https://github.com/massive-com/client-python/pull/168
Minor bug in CryptoTrade class not showing symbolhttps://github.com/massive-com/client-python/issues/164#top
#168https://github.com/massive-com/client-python/pull/168
https://github.com/dobizz
dobizzhttps://github.com/dobizz
on May 7, 2022https://github.com/massive-com/client-python/issues/164#issue-1228525308
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.