{"id":536,"date":"2023-10-08T09:30:09","date_gmt":"2023-10-08T01:30:09","guid":{"rendered":"\/?p=536"},"modified":"2023-10-16T20:28:52","modified_gmt":"2023-10-16T12:28:52","slug":"%e8%8e%b7%e5%8f%96%e5%bd%93%e6%97%a5n%e4%b8%aa%e5%ad%a3%e5%ba%a6%e5%89%8d%e7%9a%84%e6%97%a5%e6%9c%9f%e6%89%80%e5%a4%84%e5%ad%a3%e5%ba%a6%e7%9a%84%e6%9c%80%e5%90%8e%e4%b8%80%e5%a4%a9","status":"publish","type":"post","link":"\/?p=536","title":{"rendered":"PTrade\u83b7\u53d6\u5f53\u65e5n\u4e2a\u5b63\u5ea6\u524d\u7684\u65e5\u671f\u6240\u5904\u5b63\u5ea6\u7684\u6700\u540e\u4e00\u5929\u2014\u2014\u65f6\u95f4\u76f8\u5173\u51fd\u65704"},"content":{"rendered":"<p>\u672c\u6587\u4ecb\u7ecd\u7684\u51fd\u6570\u7528\u4e8e\u83b7\u53d6\u5f53\u65e5n\u4e2a\u5b63\u5ea6\u524d\u7684\u65e5\u671f\u6240\u5904\u5b63\u5ea6\u7684\u6700\u540e\u4e00\u5929\uff08\u6709\u70b9\u7ed5\uff0c\u770b\u540e\u9762\u4f8b\u5b50\u5c31\u597d\u7406\u89e3\u4e86\uff09\u3002<\/p>\n<h3>\u6e90\u7801<\/h3>\n<pre><code class=\"language-python line-numbers\">def last_day_of_quarter_before_n_quarters(n):\n    \"\"\"\n    \u83b7\u53d6\u5f53\u65e5n\u4e2a\u5b63\u5ea6\u524d\u7684\u65e5\u671f\u6240\u5904\u5b63\u5ea6\u7684\u6700\u540e\u4e00\u5929\n\n    :return: \u5f53\u65e5n\u4e2a\u5b63\u5ea6\u524d\u7684\u65e5\u671f\u6240\u5904\u5b63\u5ea6\u7684\u6700\u540e\u4e00\u5929\uff0c\u683c\u5f0f\u4e3a\u5b57\u7b26\u4e32\n    \"\"\"\n\n    # \u5f53\u524d\u65e5\u671f\n    current_date = get_trading_day()\n\n    # \u5f53\u524d\u5b63\u5ea6\n    current_quarter = (current_date.month - 1) \/\/ 3 + 1\n\n    # \u76ee\u6807\u65e5\u671f\u603b\u5b63\u5ea6\u6570\uff0c\u7528\u4e8e\u8ba1\u7b97\u76ee\u6807\u65e5\u671f\n    total_quarters = current_date.year * 4 + current_quarter - 1 - (n - 1)\n\n    # \u5f53\u524d\u5b63\u5ea6\u7684n-1\u4e2a\u5b63\u5ea6\u524d\u7684\u65e5\u671f\u5b63\u5ea6\n    quarter = total_quarters % 4 + 1\n\n    # \u5f53\u524d\u5b63\u5ea6\u7684n-1\u4e2a\u5b63\u5ea6\u524d\u7684\u65e5\u671f\u5e74\u4efd\n    year = total_quarters \/\/ 4\n\n    # \u5f53\u524d\u5b63\u5ea6\u7684n-1\u4e2a\u5b63\u5ea6\u524d\u7684\u5b63\u5ea6\u7684\u7b2c\u4e00\u4e2a\u6708\u7684\u6708\u4efd\n    month = (quarter - 1) * 3 + 1\n\n    # \u5f53\u524d\u5b63\u5ea6\u7684n-1\u4e2a\u5b63\u5ea6\u524d\u7684\u7b2c\u4e00\u4e2a\u6708\u4efd\u51cf\u53bb\u4e00\u5929\uff0c\u5f97\u5230n\u4e2a\u5b63\u5ea6\u524d\u7684\u65e5\u671f\u6240\u5904\u5b63\u5ea6\u7684\u6700\u540e\u4e00\u5929\uff0c\u5e76\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\u683c\u5f0f\n    return (dt.datetime(year, month, 1) - dt.timedelta(days=1)).strftime('%Y%m%d')\n<\/code><\/pre>\n<p>\u6709\u70b9\u7ed5\u53e3\uff0c\u4e3e\u4e2a\u4f8b\u5b50\u3002<br \/>\n\u5047\u8bbe\u5f53\u65e5\u4e3a2022\u5e746\u670830\u65e5\uff082022\u5e74\u7b2c\u4e8c\u5b63\u5ea6\u7684\u6700\u540e\u4e00\u5929\uff09\uff0c\u5f53\u65e51\uff08\u8fd9\u91cc\u53c2\u6570n=1\uff09\u4e2a\u5b63\u5ea6\u524d\u7684\u6700\u540e\u4e00\u5929\uff0c\u4e5f\u5c31\u662f2022\u5e74\u7b2c\u4e00\u5b63\u5ea6\u7684\u6700\u540e\u4e00\u5929\uff082022\u5e743\u670831\u65e5\uff09\uff1b\u5f53\u65e52\uff08\u8fd9\u91cc\u53c2\u6570n=2\uff09\u4e2a\u5b63\u5ea6\u524d\u7684\u6700\u540e\u4e00\u5929\uff0c\u4e5f\u5c31\u662f2021\u5e74\u7b2c\u56db\u5b63\u5ea6\u7684\u6700\u540e\u4e00\u5929\uff082021\u5e7412\u670831\u65e5\uff09\u3002<\/p>\n<p>\u66f4\u591a\u7684\u5b9e\u4f8b\u53ef\u4ee5\u53c2\u89c1\u4e0b\u9762\u7684\u8868\u683c\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>\u5f53\u524d\u65e5\u671f<\/th>\n<th>n=1\u7684\u8fd4\u56de\u503c<\/th>\n<th>n=2\u7684\u8fd4\u56de\u503c<\/th>\n<th>n=3\u7684\u8fd4\u56de\u503c<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>20220630<\/td>\n<td>20220331<\/td>\n<td>20211231<\/td>\n<td>20210930<\/td>\n<\/tr>\n<tr>\n<td>20220701<\/td>\n<td>20220630<\/td>\n<td>20220331<\/td>\n<td>20211231<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5f88\u591a\u7b56\u7565\u90fd\u9700\u8981\u67e5\u8be2\u4e0a\u5e02\u516c\u53f8\u7684\u8d22\u52a1\u6570\u636e\u3002ptrade\u63d0\u4f9b\u4e86\u67e5\u8be2\u8d22\u52a1\u6570\u636e\u7684\u63a5\u53e3\u51fd\u6570get_fundamentals\uff0c\u5728\u8be5\u51fd\u6570\u4f7f\u7528\u65f6\uff0c\u9700\u8981\u7528\u5230\u67e5\u8be2\u65e5\u671f\u4f5c\u4e3a\u53c2\u6570\u3002\u67e5\u8be2\u65e5\u671f\u7684\u4e0d\u540c\uff0c\u4f1a\u8fd4\u56de\u4e0d\u540c\u7684\u8d22\u52a1\u6570\u636e\u7ed3\u679c\u3002\u672c\u6587\u6240\u63d0\u4f9b\u7684\u51fd\u6570\uff0c\u4f1a\u5728\u56de\u6d4b\u8fc7\u7a0b\uff0c\u83b7\u53d6\u6807\u7684\u7684\u6700\u65b0\u8d22\u52a1\u6570\u636e\u4e2d\u4f7f\u7528\uff0c\u540e\u7eed\u6587\u7ae0\u4f1a\u6709\u4f7f\u7528\u793a\u4f8b\u3002<\/p>\n<hr \/>\n<p><strong>\u535a\u5ba2\u5185\u5bb9\u53ea\u7528\u4e8e\u4ea4\u6d41\u5b66\u4e60\uff0c\u4e0d\u6784\u6210\u6295\u8d44\u5efa\u8bae\uff0c\u76c8\u4e8f\u81ea\u8d1f\uff01<\/strong><br \/>\n\u4e2a\u4eba\u535a\u5ba2\uff1ahttp:\/\/coderx.com.cn\/\uff08\u4f18\u5148\u66f4\u65b0\uff09<br \/>\n\u9879\u76ee\u6700\u65b0\u4ee3\u7801\uff1ahttps:\/\/gitee.com\/sl\/quant_from_scratch<\/p>\n<p>\u6b22\u8fce\u5927\u5bb6\u8f6c\u53d1\u3001\u7559\u8a00\u3002\u6709\u5fae\u4fe1\u7fa4\u7528\u4e8e\u5b66\u4e60\u4ea4\u6d41\uff0c\u611f\u5174\u8da3\u7684\u8bfb\u8005\u8bf7\u626b\u7801\u52a0\u5fae\u4fe1\uff01<\/p>\n<p>\u5982\u679c\u8ba4\u4e3a\u535a\u5ba2\u5bf9\u60a8\u6709\u5e2e\u52a9\uff0c\u53ef\u4ee5\u626b\u7801\u8fdb\u884c\u6350\u8d60\uff0c\u611f\u8c22\uff01<\/p>\n<table>\n<thead>\n<tr>\n<th align=\"center\">\u5fae\u4fe1\u4e8c\u7ef4\u7801<\/th>\n<th align=\"center\">\u5fae\u4fe1\u6350\u8d60\u4e8c\u7ef4\u7801<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\"><img decoding=\"async\" src=\"\/wordpress\/wp-content\/uploads\/2021\/11\/wechat_margin.png\" alt=\"\u5fae\u4fe1\u4e8c\u7ef4\u7801\" \/><\/td>\n<td align=\"center\"><img decoding=\"async\" src=\"\/wordpress\/wp-content\/uploads\/2021\/09\/wechatpay.png\" alt=\"\u6350\u8d60\u4e8c\u7ef4\u7801\" \/><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u4ecb\u7ecd\u7684\u51fd\u6570\u7528\u4e8e\u83b7\u53d6\u5f53\u65e5n\u4e2a\u5b63\u5ea6\u524d\u7684\u65e5\u671f\u6240\u5904\u5b63\u5ea6\u7684\u6700\u540e\u4e00\u5929\uff08\u6709\u70b9\u7ed5\uff0c\u770b\u540e\u9762\u4f8b\u5b50\u5c31\u597d\u7406\u89e3\u4e86\uff09\u3002 \u6e90\u7801 def  &#8230; <a title=\"PTrade\u83b7\u53d6\u5f53\u65e5n\u4e2a\u5b63\u5ea6\u524d\u7684\u65e5\u671f\u6240\u5904\u5b63\u5ea6\u7684\u6700\u540e\u4e00\u5929\u2014\u2014\u65f6\u95f4\u76f8\u5173\u51fd\u65704\" class=\"read-more\" href=\"\/?p=536\" aria-label=\"\u7ee7\u7eed\u9605\u8bfbPTrade\u83b7\u53d6\u5f53\u65e5n\u4e2a\u5b63\u5ea6\u524d\u7684\u65e5\u671f\u6240\u5904\u5b63\u5ea6\u7684\u6700\u540e\u4e00\u5929\u2014\u2014\u65f6\u95f4\u76f8\u5173\u51fd\u65704\">\u9605\u8bfb\u66f4\u591a<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-536","post","type-post","status-publish","format-standard","hentry","category-ptrade"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>PTrade\u83b7\u53d6\u5f53\u65e5n\u4e2a\u5b63\u5ea6\u524d\u7684\u65e5\u671f\u6240\u5904\u5b63\u5ea6\u7684\u6700\u540e\u4e00\u5929\u2014\u2014\u65f6\u95f4\u76f8\u5173\u51fd\u65704 - Python\u91cf\u5316\u6280\u672f\u5206\u4eab<\/title>\n<meta name=\"description\" content=\"\u5f88\u591a\u7b56\u7565\u90fd\u9700\u8981\u67e5\u8be2\u4e0a\u5e02\u516c\u53f8\u7684\u8d22\u52a1\u6570\u636e\u3002ptrade\u63d0\u4f9b\u4e86\u67e5\u8be2\u8d22\u52a1\u6570\u636e\u7684\u63a5\u53e3\u51fd\u6570get_fundamentals\uff0c\u5728\u8be5\u51fd\u6570\u4f7f\u7528\u65f6\uff0c\u9700\u8981\u7528\u5230\u67e5\u8be2\u65e5\u671f\u4f5c\u4e3a\u53c2\u6570\u3002\u67e5\u8be2\u65e5\u671f\u7684\u4e0d\u540c\uff0c\u4f1a\u8fd4\u56de\u4e0d\u540c\u7684\u8d22\u52a1\u6570\u636e\u7ed3\u679c\u3002\u672c\u6587\u6240\u63d0\u4f9b\u7684\u51fd\u6570\uff0c\u4f1a\u5728\u56de\u6d4b\u8fc7\u7a0b\uff0c\u83b7\u53d6\u6807\u7684\u7684\u6700\u65b0\u8d22\u52a1\u6570\u636e\u4e2d\u4f7f\u7528\uff0c\u540e\u7eed\u6587\u7ae0\u4f1a\u6709\u4f7f\u7528\u793a\u4f8b\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/coderx.com.cn\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PTrade\u83b7\u53d6\u5f53\u65e5n\u4e2a\u5b63\u5ea6\u524d\u7684\u65e5\u671f\u6240\u5904\u5b63\u5ea6\u7684\u6700\u540e\u4e00\u5929\u2014\u2014\u65f6\u95f4\u76f8\u5173\u51fd\u65704 - Python\u91cf\u5316\u6280\u672f\u5206\u4eab\" \/>\n<meta property=\"og:description\" content=\"\u5f88\u591a\u7b56\u7565\u90fd\u9700\u8981\u67e5\u8be2\u4e0a\u5e02\u516c\u53f8\u7684\u8d22\u52a1\u6570\u636e\u3002ptrade\u63d0\u4f9b\u4e86\u67e5\u8be2\u8d22\u52a1\u6570\u636e\u7684\u63a5\u53e3\u51fd\u6570get_fundamentals\uff0c\u5728\u8be5\u51fd\u6570\u4f7f\u7528\u65f6\uff0c\u9700\u8981\u7528\u5230\u67e5\u8be2\u65e5\u671f\u4f5c\u4e3a\u53c2\u6570\u3002\u67e5\u8be2\u65e5\u671f\u7684\u4e0d\u540c\uff0c\u4f1a\u8fd4\u56de\u4e0d\u540c\u7684\u8d22\u52a1\u6570\u636e\u7ed3\u679c\u3002\u672c\u6587\u6240\u63d0\u4f9b\u7684\u51fd\u6570\uff0c\u4f1a\u5728\u56de\u6d4b\u8fc7\u7a0b\uff0c\u83b7\u53d6\u6807\u7684\u7684\u6700\u65b0\u8d22\u52a1\u6570\u636e\u4e2d\u4f7f\u7528\uff0c\u540e\u7eed\u6587\u7ae0\u4f1a\u6709\u4f7f\u7528\u793a\u4f8b\u3002\" \/>\n<meta property=\"og:url\" content=\"\/?p=536\" \/>\n<meta property=\"og:site_name\" content=\"Python\u91cf\u5316\u6280\u672f\u5206\u4eab\" \/>\n<meta property=\"article:published_time\" content=\"2023-10-08T01:30:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-10-16T12:28:52+00:00\" \/>\n<meta name=\"author\" content=\"mnj\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"mnj\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\/\/coderx.com.cn\/#article\",\"isPartOf\":{\"@id\":\"\/?p=536\"},\"author\":{\"name\":\"mnj\",\"@id\":\"http:\/\/coderx.com.cn\/#\/schema\/person\/e6e36ad3875b57e0197447fee9d8bfd5\"},\"headline\":\"PTrade\u83b7\u53d6\u5f53\u65e5n\u4e2a\u5b63\u5ea6\u524d\u7684\u65e5\u671f\u6240\u5904\u5b63\u5ea6\u7684\u6700\u540e\u4e00\u5929\u2014\u2014\u65f6\u95f4\u76f8\u5173\u51fd\u65704\",\"datePublished\":\"2023-10-08T01:30:09+00:00\",\"dateModified\":\"2023-10-16T12:28:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"\/?p=536\"},\"wordCount\":22,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/coderx.com.cn\/#\/schema\/person\/e6e36ad3875b57e0197447fee9d8bfd5\"},\"articleSection\":[\"ptrade\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\/\/coderx.com.cn\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"\/?p=536\",\"url\":\"http:\/\/coderx.com.cn\/\",\"name\":\"PTrade\u83b7\u53d6\u5f53\u65e5n\u4e2a\u5b63\u5ea6\u524d\u7684\u65e5\u671f\u6240\u5904\u5b63\u5ea6\u7684\u6700\u540e\u4e00\u5929\u2014\u2014\u65f6\u95f4\u76f8\u5173\u51fd\u65704 - Python\u91cf\u5316\u6280\u672f\u5206\u4eab\",\"isPartOf\":{\"@id\":\"http:\/\/coderx.com.cn\/#website\"},\"datePublished\":\"2023-10-08T01:30:09+00:00\",\"dateModified\":\"2023-10-16T12:28:52+00:00\",\"description\":\"\u5f88\u591a\u7b56\u7565\u90fd\u9700\u8981\u67e5\u8be2\u4e0a\u5e02\u516c\u53f8\u7684\u8d22\u52a1\u6570\u636e\u3002ptrade\u63d0\u4f9b\u4e86\u67e5\u8be2\u8d22\u52a1\u6570\u636e\u7684\u63a5\u53e3\u51fd\u6570get_fundamentals\uff0c\u5728\u8be5\u51fd\u6570\u4f7f\u7528\u65f6\uff0c\u9700\u8981\u7528\u5230\u67e5\u8be2\u65e5\u671f\u4f5c\u4e3a\u53c2\u6570\u3002\u67e5\u8be2\u65e5\u671f\u7684\u4e0d\u540c\uff0c\u4f1a\u8fd4\u56de\u4e0d\u540c\u7684\u8d22\u52a1\u6570\u636e\u7ed3\u679c\u3002\u672c\u6587\u6240\u63d0\u4f9b\u7684\u51fd\u6570\uff0c\u4f1a\u5728\u56de\u6d4b\u8fc7\u7a0b\uff0c\u83b7\u53d6\u6807\u7684\u7684\u6700\u65b0\u8d22\u52a1\u6570\u636e\u4e2d\u4f7f\u7528\uff0c\u540e\u7eed\u6587\u7ae0\u4f1a\u6709\u4f7f\u7528\u793a\u4f8b\u3002\",\"breadcrumb\":{\"@id\":\"http:\/\/coderx.com.cn\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/coderx.com.cn\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/coderx.com.cn\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"http:\/\/coderx.com.cn\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PTrade\u83b7\u53d6\u5f53\u65e5n\u4e2a\u5b63\u5ea6\u524d\u7684\u65e5\u671f\u6240\u5904\u5b63\u5ea6\u7684\u6700\u540e\u4e00\u5929\u2014\u2014\u65f6\u95f4\u76f8\u5173\u51fd\u65704\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/coderx.com.cn\/#website\",\"url\":\"http:\/\/coderx.com.cn\/\",\"name\":\"Python\u91cf\u5316\u6280\u672f\u5206\u4eab-\u7801\u519c\u7532\u7684\u5b66\u4e60\u7b14\u8bb0\",\"description\":\"\u7801\u519c\u7532\u7684\u5b66\u4e60\u7b14\u8bb0\",\"publisher\":{\"@id\":\"http:\/\/coderx.com.cn\/#\/schema\/person\/e6e36ad3875b57e0197447fee9d8bfd5\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/coderx.com.cn\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"http:\/\/coderx.com.cn\/#\/schema\/person\/e6e36ad3875b57e0197447fee9d8bfd5\",\"name\":\"mnj\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"http:\/\/coderx.com.cn\/#\/schema\/person\/image\/\",\"url\":\"\/wordpress\/wp-content\/uploads\/2021\/09\/cropped-1-2.jpg\",\"contentUrl\":\"\/wordpress\/wp-content\/uploads\/2021\/09\/cropped-1-2.jpg\",\"width\":951,\"height\":189,\"caption\":\"mnj\"},\"logo\":{\"@id\":\"http:\/\/coderx.com.cn\/#\/schema\/person\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PTrade\u83b7\u53d6\u5f53\u65e5n\u4e2a\u5b63\u5ea6\u524d\u7684\u65e5\u671f\u6240\u5904\u5b63\u5ea6\u7684\u6700\u540e\u4e00\u5929\u2014\u2014\u65f6\u95f4\u76f8\u5173\u51fd\u65704 - Python\u91cf\u5316\u6280\u672f\u5206\u4eab","description":"\u5f88\u591a\u7b56\u7565\u90fd\u9700\u8981\u67e5\u8be2\u4e0a\u5e02\u516c\u53f8\u7684\u8d22\u52a1\u6570\u636e\u3002ptrade\u63d0\u4f9b\u4e86\u67e5\u8be2\u8d22\u52a1\u6570\u636e\u7684\u63a5\u53e3\u51fd\u6570get_fundamentals\uff0c\u5728\u8be5\u51fd\u6570\u4f7f\u7528\u65f6\uff0c\u9700\u8981\u7528\u5230\u67e5\u8be2\u65e5\u671f\u4f5c\u4e3a\u53c2\u6570\u3002\u67e5\u8be2\u65e5\u671f\u7684\u4e0d\u540c\uff0c\u4f1a\u8fd4\u56de\u4e0d\u540c\u7684\u8d22\u52a1\u6570\u636e\u7ed3\u679c\u3002\u672c\u6587\u6240\u63d0\u4f9b\u7684\u51fd\u6570\uff0c\u4f1a\u5728\u56de\u6d4b\u8fc7\u7a0b\uff0c\u83b7\u53d6\u6807\u7684\u7684\u6700\u65b0\u8d22\u52a1\u6570\u636e\u4e2d\u4f7f\u7528\uff0c\u540e\u7eed\u6587\u7ae0\u4f1a\u6709\u4f7f\u7528\u793a\u4f8b\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/coderx.com.cn\/","og_locale":"zh_CN","og_type":"article","og_title":"PTrade\u83b7\u53d6\u5f53\u65e5n\u4e2a\u5b63\u5ea6\u524d\u7684\u65e5\u671f\u6240\u5904\u5b63\u5ea6\u7684\u6700\u540e\u4e00\u5929\u2014\u2014\u65f6\u95f4\u76f8\u5173\u51fd\u65704 - Python\u91cf\u5316\u6280\u672f\u5206\u4eab","og_description":"\u5f88\u591a\u7b56\u7565\u90fd\u9700\u8981\u67e5\u8be2\u4e0a\u5e02\u516c\u53f8\u7684\u8d22\u52a1\u6570\u636e\u3002ptrade\u63d0\u4f9b\u4e86\u67e5\u8be2\u8d22\u52a1\u6570\u636e\u7684\u63a5\u53e3\u51fd\u6570get_fundamentals\uff0c\u5728\u8be5\u51fd\u6570\u4f7f\u7528\u65f6\uff0c\u9700\u8981\u7528\u5230\u67e5\u8be2\u65e5\u671f\u4f5c\u4e3a\u53c2\u6570\u3002\u67e5\u8be2\u65e5\u671f\u7684\u4e0d\u540c\uff0c\u4f1a\u8fd4\u56de\u4e0d\u540c\u7684\u8d22\u52a1\u6570\u636e\u7ed3\u679c\u3002\u672c\u6587\u6240\u63d0\u4f9b\u7684\u51fd\u6570\uff0c\u4f1a\u5728\u56de\u6d4b\u8fc7\u7a0b\uff0c\u83b7\u53d6\u6807\u7684\u7684\u6700\u65b0\u8d22\u52a1\u6570\u636e\u4e2d\u4f7f\u7528\uff0c\u540e\u7eed\u6587\u7ae0\u4f1a\u6709\u4f7f\u7528\u793a\u4f8b\u3002","og_url":"\/?p=536","og_site_name":"Python\u91cf\u5316\u6280\u672f\u5206\u4eab","article_published_time":"2023-10-08T01:30:09+00:00","article_modified_time":"2023-10-16T12:28:52+00:00","author":"mnj","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"mnj","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/coderx.com.cn\/#article","isPartOf":{"@id":"\/?p=536"},"author":{"name":"mnj","@id":"http:\/\/coderx.com.cn\/#\/schema\/person\/e6e36ad3875b57e0197447fee9d8bfd5"},"headline":"PTrade\u83b7\u53d6\u5f53\u65e5n\u4e2a\u5b63\u5ea6\u524d\u7684\u65e5\u671f\u6240\u5904\u5b63\u5ea6\u7684\u6700\u540e\u4e00\u5929\u2014\u2014\u65f6\u95f4\u76f8\u5173\u51fd\u65704","datePublished":"2023-10-08T01:30:09+00:00","dateModified":"2023-10-16T12:28:52+00:00","mainEntityOfPage":{"@id":"\/?p=536"},"wordCount":22,"commentCount":0,"publisher":{"@id":"http:\/\/coderx.com.cn\/#\/schema\/person\/e6e36ad3875b57e0197447fee9d8bfd5"},"articleSection":["ptrade"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/coderx.com.cn\/#respond"]}]},{"@type":"WebPage","@id":"\/?p=536","url":"http:\/\/coderx.com.cn\/","name":"PTrade\u83b7\u53d6\u5f53\u65e5n\u4e2a\u5b63\u5ea6\u524d\u7684\u65e5\u671f\u6240\u5904\u5b63\u5ea6\u7684\u6700\u540e\u4e00\u5929\u2014\u2014\u65f6\u95f4\u76f8\u5173\u51fd\u65704 - Python\u91cf\u5316\u6280\u672f\u5206\u4eab","isPartOf":{"@id":"http:\/\/coderx.com.cn\/#website"},"datePublished":"2023-10-08T01:30:09+00:00","dateModified":"2023-10-16T12:28:52+00:00","description":"\u5f88\u591a\u7b56\u7565\u90fd\u9700\u8981\u67e5\u8be2\u4e0a\u5e02\u516c\u53f8\u7684\u8d22\u52a1\u6570\u636e\u3002ptrade\u63d0\u4f9b\u4e86\u67e5\u8be2\u8d22\u52a1\u6570\u636e\u7684\u63a5\u53e3\u51fd\u6570get_fundamentals\uff0c\u5728\u8be5\u51fd\u6570\u4f7f\u7528\u65f6\uff0c\u9700\u8981\u7528\u5230\u67e5\u8be2\u65e5\u671f\u4f5c\u4e3a\u53c2\u6570\u3002\u67e5\u8be2\u65e5\u671f\u7684\u4e0d\u540c\uff0c\u4f1a\u8fd4\u56de\u4e0d\u540c\u7684\u8d22\u52a1\u6570\u636e\u7ed3\u679c\u3002\u672c\u6587\u6240\u63d0\u4f9b\u7684\u51fd\u6570\uff0c\u4f1a\u5728\u56de\u6d4b\u8fc7\u7a0b\uff0c\u83b7\u53d6\u6807\u7684\u7684\u6700\u65b0\u8d22\u52a1\u6570\u636e\u4e2d\u4f7f\u7528\uff0c\u540e\u7eed\u6587\u7ae0\u4f1a\u6709\u4f7f\u7528\u793a\u4f8b\u3002","breadcrumb":{"@id":"http:\/\/coderx.com.cn\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["http:\/\/coderx.com.cn\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/coderx.com.cn\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"http:\/\/coderx.com.cn\/"},{"@type":"ListItem","position":2,"name":"PTrade\u83b7\u53d6\u5f53\u65e5n\u4e2a\u5b63\u5ea6\u524d\u7684\u65e5\u671f\u6240\u5904\u5b63\u5ea6\u7684\u6700\u540e\u4e00\u5929\u2014\u2014\u65f6\u95f4\u76f8\u5173\u51fd\u65704"}]},{"@type":"WebSite","@id":"http:\/\/coderx.com.cn\/#website","url":"http:\/\/coderx.com.cn\/","name":"Python\u91cf\u5316\u6280\u672f\u5206\u4eab-\u7801\u519c\u7532\u7684\u5b66\u4e60\u7b14\u8bb0","description":"\u7801\u519c\u7532\u7684\u5b66\u4e60\u7b14\u8bb0","publisher":{"@id":"http:\/\/coderx.com.cn\/#\/schema\/person\/e6e36ad3875b57e0197447fee9d8bfd5"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/coderx.com.cn\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":["Person","Organization"],"@id":"http:\/\/coderx.com.cn\/#\/schema\/person\/e6e36ad3875b57e0197447fee9d8bfd5","name":"mnj","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"http:\/\/coderx.com.cn\/#\/schema\/person\/image\/","url":"\/wordpress\/wp-content\/uploads\/2021\/09\/cropped-1-2.jpg","contentUrl":"\/wordpress\/wp-content\/uploads\/2021\/09\/cropped-1-2.jpg","width":951,"height":189,"caption":"mnj"},"logo":{"@id":"http:\/\/coderx.com.cn\/#\/schema\/person\/image\/"}}]}},"_links":{"self":[{"href":"http:\/\/coderx.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/536","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/coderx.com.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/coderx.com.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/coderx.com.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/coderx.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=536"}],"version-history":[{"count":2,"href":"http:\/\/coderx.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/536\/revisions"}],"predecessor-version":[{"id":550,"href":"http:\/\/coderx.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/536\/revisions\/550"}],"wp:attachment":[{"href":"http:\/\/coderx.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=536"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/coderx.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=536"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/coderx.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=536"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}