{"id":768,"date":"2020-09-28T20:39:54","date_gmt":"2020-09-28T20:39:54","guid":{"rendered":"http:\/\/www.patternsmart.com\/cn\/?p=768"},"modified":"2021-01-13T21:10:12","modified_gmt":"2021-01-13T21:10:12","slug":"portfolio-functions-on-thinkorswim","status":"publish","type":"post","link":"https:\/\/www.patternsmart.com\/cn\/portfolio-functions-on-thinkorswim\/","title":{"rendered":"Thinkorswim\u4e0a\u7684\u6295\u8d44\u7ec4\u5408\u529f\u80fd\u51fd\u6570\u4ecb\u7ecd"},"content":{"rendered":"\r\n<p>&nbsp;<\/p>\r\n<p><span>\u5728Thinkorswim\u4e0a\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u6295\u8d44\u7ec4\u5408\u529f\u80fd\u6765\u663e\u793a\u4e0e\u5f53\u524d\u6240\u9009\u5e10\u6237\u76f8\u5173\u7684\u4fe1\u606f\uff0c\u4f8b\u5982\u6307\u5b9a\u4ea4\u6613\u54c1\u79cd\u7684\u672a\u5e73\u4ed3\u5229\u6da6\/\u4e8f\u635f\u503c\u3002\u5b83\u53ef\u4ee5\u5728\u56fe\u8868\u4e0a\u6807\u7ed8\u6216\u6807\u6ce8\u3002<\/span><\/p>\r\n<p><span>\u5982\u679c\u60a8\u9700\u8981\u521b\u5efa\u4efb\u4f55\u81ea\u5b9a\u4e49\u6307\u6807\u4ee5\u5728\u56fe\u8868\u4e0a\u663e\u793a\u6295\u8d44\u7ec4\u5408\uff0c\u8bf7\u4e0e\u6211\u4eec\u8054\u7cfb<\/span><\/p>\r\n<p><span>\u5f53\u524d\uff0c\u4ee5\u4e0b\u6295\u8d44\u7ec4\u5408\u529f\u80fd\u53ef\u7528\uff1a<\/span><\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li><a href=\"https:\/\/tlc.thinkorswim.com\/center\/reference\/thinkScript\/Functions\/Portfolio\/GetAveragePrice\">GetAveragePrice<\/a><\/li>\r\n<li><a href=\"https:\/\/tlc.thinkorswim.com\/center\/reference\/thinkScript\/Functions\/Portfolio\/GetNetLiq\">GetNetLiq<\/a><\/li>\r\n<li><a href=\"https:\/\/tlc.thinkorswim.com\/center\/reference\/thinkScript\/Functions\/Portfolio\/GetOpenPL\">GetOpenPL<\/a><\/li>\r\n<li><a href=\"https:\/\/tlc.thinkorswim.com\/center\/reference\/thinkScript\/Functions\/Portfolio\/GetQuantity\">GetQuantity<\/a><\/li>\r\n<li><a href=\"https:\/\/tlc.thinkorswim.com\/center\/reference\/thinkScript\/Functions\/Portfolio\/GetTotalCash\">GetTotalCash\u00a0<\/a>\r\n<p>\u4e0e\u6211\u4eec\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u7684\u5176\u4ed6\u529f\u80fd\u4e0d\u540c\uff0c\u60a8\u53ef\u80fd\u9700\u8981\u5148\u542f\u7528\u5b83\uff0c\u7136\u540e\u8f6c\u5230\u9700\u8981\u542f\u7528\u7684\u201c\u9ad8\u7ea7\u529f\u80fd\u201d\u8bbe\u7f6e\uff1a\u00a0<br \/>Ameritrade.com&gt;\u5ba2\u6237\u670d\u52a1&gt;\u6211\u7684\u8d44\u6599&gt;\u5e38\u89c4&gt;\u9ad8\u7ea7\u529f\u80fd<\/p>\r\n<p>\u4f8b\u5982\uff0c\u5982\u679c\u901a\u8fc7\u4f7f\u7528GetOpenPL\u51fd\u6570\u6dfb\u52a0\u4e86\u4e00\u4e2a\u6807\u7b7e\u6765\u663e\u793a\u672a\u5e73\u4ed3\u4ef7\/\u4e8f\u635f\u503c\uff0c\u5219\u8be5\u503c\u59cb\u7ec8\u4e3a0\uff08\u5982\u679c\u672a\u542f\u7528\uff09\u3002<\/p>\r\n<p>\u6295\u8d44\u7ec4\u5408\u529f\u80fd\u4f7f\u60a8\u53ef\u4ee5\u5728\u8ba1\u7b97\u4e2d\u5229\u7528\u7279\u5b9a\u4e8e\u60a8\u81ea\u5df1\u8d26\u6237\u7684\u6570\u5b57\u3002\u5982\u679c\u5c06\u7b26\u53f7\u5e94\u7528\u4e8e\u7b26\u53f7\uff0c\u5219\u8fd9\u4e9b\u51fd\u6570\u5c06\u4e0d\u4f1a\u5728\u8ba1\u7b97\u4e2d\u5305\u62ec\u5176\u5bfc\u6570\u3002<\/p>\r\n<p>\u4ee5\u4e0b\u9650\u5236\u4f7f\u7528\u65f6\u5e94\u7528<code>GetAveragePrice<\/code>\uff0c<code>GetOpenPL<\/code>\u548c<code>GetQuantity<\/code>\u529f\u80fd\uff1a<\/p>\r\n<ul>\r\n<li>\u4e0d\u80fd\u5728\u4ef7\u683c\u7c7b\u578b\u4e0d\u662fLAST\u7684\u56fe\u8868\u4e0a\u4f7f\u7528\u5b83\u4eec\uff08\u5373\uff0c\u5b83\u4eec\u4e0d\u9002\u7528\u4e8eMARK\uff0cASK\u6216BID\u4ef7\u683c\u7c7b\u578b\uff09\u3002<\/li>\r\n<li>\u5982\u679c\u5e94\u7528\u4e8e\u671f\u8d27\u4ea7\u54c1\u56fe\u8868\uff0c\u4ed6\u4eec\u5c06\u8ba2\u9605\u6709\u6548\u5408\u7ea6\u6570\u636e\u3002<\/li>\r\n<\/ul>\r\n<p>\u8fd8\u8981\u6ce8\u610f\uff0cPortfolio\u51fd\u6570\u53ea\u80fd\u4e0e\u4ee5\u4e0b\u805a\u5408\u65f6\u6bb5\u4e00\u8d77\u4f7f\u7528\uff1a1\u5206\u949f\uff0c2\u5206\u949f\uff0c3\u5206\u949f\uff0c4\u5206\u949f\uff0c5\u5206\u949f\uff0c10\u5206\u949f\uff0c15\u5206\u949f\uff0c20\u5206\u949f\uff0c30\u5206\u949f\uff0c1\u5c0f\u65f6\u62161\u5929\u3002\u6c47\u603b1\u5929\u7684\u65f6\u95f4\u9650\u5236\u4e3a1\u5e74\u3002\u00a0<\/p>\r\n<\/li>\r\n<\/ul>\r\n\r\n\r\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; \u5728Thinkorswim\u4e0a\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u6295\u8d44\u7ec4\u5408\u529f\u80fd\u6765\u663e\u793a\u4e0e\u5f53\u524d\u6240\u9009\u5e10\u6237\u76f8\u5173\u7684\u4fe1\u606f\uff0c\u4f8b\u5982\u6307\u5b9a\u4ea4\u6613 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"","fifu_image_alt":"","footnotes":""},"categories":[71],"tags":[],"class_list":["post-768","post","type-post","status-publish","format-standard","hentry","category-thinkorswim"],"_links":{"self":[{"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/posts\/768","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/comments?post=768"}],"version-history":[{"count":3,"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/posts\/768\/revisions"}],"predecessor-version":[{"id":840,"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/posts\/768\/revisions\/840"}],"wp:attachment":[{"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/media?parent=768"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/categories?post=768"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/tags?post=768"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}