{"id":467541,"date":"2025-07-18T22:33:22","date_gmt":"2025-07-18T22:33:22","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=467541"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=467541","title":{"rendered":"<span>\u041a\u0430\u043a \u00ab\u0432\u0437\u043b\u043e\u043c\u0430\u0442\u044c\u00bb \u0441\u0430\u0439\u0442 \u041c\u043e\u0441\u0431\u0438\u0440\u0436\u0438 \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u043b\u0443\u0447\u0448\u0438\u0435 BID \u0438 OFFER \u0432 Excel \u2014 \u0431\u0435\u0437 \u043f\u043e\u0434\u043f\u0438\u0441\u043e\u043a, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Python \u0438 API \u0431\u0440\u043e\u043a\u0435\u0440\u0430<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>Excel &#8212; \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u043c\u043d\u043e\u0433\u0438\u0445 \u0447\u0430\u0441\u0442\u043d\u044b\u0445 \u0438\u043d\u0432\u0435\u0441\u0442\u043e\u0440\u043e\u0432. \u0417\u0434\u0435\u0441\u044c \u0432\u0435\u0434\u0443\u0442 \u043f\u043e\u0440\u0442\u0444\u0435\u043b\u0438, \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0438 \u0438 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u043a\u043e\u0442\u0438\u0440\u043e\u0432\u043e\u043a. \u041d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043e\u0442 \u041c\u043e\u0441\u043a\u043e\u0432\u0441\u043a\u043e\u0439 \u0431\u0438\u0440\u0436\u0438 \u043b\u0443\u0447\u0448\u0438\u0435 \u0446\u0435\u043d\u044b \u043d\u0430 \u043f\u043e\u043a\u0443\u043f\u043a\u0443 (BID) \u0438 \u043f\u0440\u043e\u0434\u0430\u0436\u0443 (OFFER) \u0438\u0437 \u0441\u0442\u0430\u043a\u0430\u043d\u0430 \u043f\u0440\u044f\u043c\u043e \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 &#8212; \u0437\u0430\u0434\u0430\u0447\u0430 \u043d\u0435 \u0438\u0437 \u043f\u0440\u043e\u0441\u0442\u044b\u0445. \u0414\u0430\u0436\u0435 \u043f\u043b\u0430\u0442\u043d\u0430\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0430 \u043d\u0430 \u0441\u0430\u0439\u0442 \u0431\u0438\u0440\u0436\u0438 \u043d\u0435 \u0434\u0430\u0451\u0442 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u043a\u043e\u0442\u0438\u0440\u043e\u0432\u043a\u0438 \u0432 Excel \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e.<\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/7cd\/62a\/2c6\/7cd62a2c620eaaa94409c883417eb72a.png\" width=\"1280\" height=\"1169\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/7cd\/62a\/2c6\/7cd62a2c620eaaa94409c883417eb72a.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/7cd\/62a\/2c6\/7cd62a2c620eaaa94409c883417eb72a.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<p>\u041d\u043e \u0441\u043b\u043e\u0432\u043e \u00ab\u0432\u0437\u043b\u043e\u043c\u00bb \u0432 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0438 \u0441\u0442\u0430\u0442\u044c\u0438 &#8212; \u044d\u0442\u043e \u0445\u0443\u0434\u043e\u0436\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u043f\u0440\u0435\u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435. \u041c\u044b \u043d\u0435 \u0431\u0443\u0434\u0435\u043c \u043d\u0430\u0440\u0443\u0448\u0430\u0442\u044c \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u0437\u0430\u043a\u043e\u043d\u043e\u0432 \u0438\u043b\u0438 \u043f\u044b\u0442\u0430\u0442\u044c\u0441\u044f \u043e\u0431\u043e\u0439\u0442\u0438 \u0437\u0430\u0449\u0438\u0442\u0443 \u0431\u0438\u0440\u0436\u0438 \u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u0434\u0430\u0436\u0435 \u043d\u0435 \u0434\u044b\u0448\u0438\u043c \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u041c\u043e\u0441\u0431\u0438\u0440\u0436\u0438. \u041e\u0434\u043d\u0430\u043a\u043e \u0433\u043e\u043b\u044c \u043d\u0430 \u0432\u044b\u0434\u0443\u043c\u043a\u0438 \u0445\u0438\u0442\u0440\u0430 &#8212; \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u043c \u044d\u043b\u0435\u0433\u0430\u043d\u0442\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e API \u043e\u0442 \u043b\u044e\u0431\u043e\u0433\u043e \u0431\u0440\u043e\u043a\u0435\u0440\u0430.<\/p>\n<p>\u0418\u0434\u0435\u044f \u043f\u0440\u043e\u0441\u0442\u0430: \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440-\u043f\u0440\u043e\u043a\u043b\u0430\u0434\u043a\u0443, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 Excel \u0441\u043c\u043e\u0436\u0435\u0442 \u043e\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u0432\u0435\u0431-\u0437\u0430\u043f\u0440\u043e\u0441\u044b. \u0421\u0435\u0440\u0432\u0435\u0440 \u0431\u0443\u0434\u0435\u0442 \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u043a API \u0431\u0440\u043e\u043a\u0435\u0440\u0430, \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0441\u0442\u0430\u043a\u0430\u043d\u0430 \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c \u0438\u0445 \u0432 \u043f\u043e\u043d\u044f\u0442\u043d\u043e\u043c \u0434\u043b\u044f \u0441\u0435\u0431\u044f XML \u0444\u043e\u0440\u043c\u0430\u0442\u0435 \u043f\u0440\u044f\u043c\u043e \u0432 \u0432\u0430\u0448\u0443 \u0442\u0430\u0431\u043b\u0438\u0446\u0443, \u0432 \u044f\u0447\u0435\u0439\u043a\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0430 \u043d\u0443\u0436\u043d\u0430\u044f \u0446\u0438\u0444\u0440\u0430. <\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/628\/283\/389\/6282833896b5e6b13d6b8a2dd84de0ca.png\" width=\"2173\" height=\"1516\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/628\/283\/389\/6282833896b5e6b13d6b8a2dd84de0ca.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/628\/283\/389\/6282833896b5e6b13d6b8a2dd84de0ca.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<p>\u0424\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u043e \u0442\u0430\u043a\u043e\u0439 \u0441\u0445\u0435\u043c\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u043b\u044e\u0431\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0441 \u0431\u0438\u0440\u0436\u0438 \u0438 \u0432\u0438\u0434\u0435\u0442\u044c \u0438\u0445 \u0432 \u0441\u0432\u043e\u0451\u043c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u043c Microsoft Excel \u0438\u043b\u0438 \u0435\u0433\u043e \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u043c \u0430\u043d\u0430\u043b\u043e\u0433\u0435 LibreOffice Calc.<\/p>\n<h3>\u041a\u0430\u043a \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c: \u0441\u0445\u0435\u043c\u0430<\/h3>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/bc8\/02b\/3c0\/bc802b3c0b475cf89f4d4b100bfd7466.png\" width=\"2150\" height=\"216\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/bc8\/02b\/3c0\/bc802b3c0b475cf89f4d4b100bfd7466.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/bc8\/02b\/3c0\/bc802b3c0b475cf89f4d4b100bfd7466.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<p>\u0412\u0441\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0441\u0442\u0440\u043e\u0438\u0442\u0441\u044f \u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0446\u0435\u043f\u043e\u0447\u043a\u0435, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u0443 \u0441\u0435\u0431\u044f \u0437\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u0438\u043d\u0443\u0442, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e <a href=\"https:\/\/github.com\/empenoso\/moex2excel_BID_OFFER\/\" rel=\"noopener noreferrer nofollow\">\u043a\u043e\u0434 \u0432\u044b\u043b\u043e\u0436\u0435\u043d \u043d\u0430 GitHub<\/a>. <\/p>\n<p>Excel \u0434\u0435\u043b\u0430\u0435\u0442 \u0432\u0435\u0431-\u0437\u0430\u043f\u0440\u043e\u0441 &#8212; \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043d\u0430 \u0430\u0434\u0440\u0435\u0441 <a href=\"http:\/\/127.0.0.1:8000\/orderbook.xml?ticker=SiU5&amp;class_code=SPBFUT%60\" rel=\"noopener noreferrer nofollow\"><code>http:\/\/127.0.0.1:8000\/orderbook.xml?ticker=SiU5&amp;class_code=SPBFUT<\/code><\/a>. \u042d\u0442\u043e\u0442 \u0437\u0430\u043f\u0440\u043e\u0441 \u043f\u043e\u0441\u0442\u0443\u043f\u0430\u0435\u0442 \u043d\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440, \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0439 \u043d\u0430 FastAPI. \u0421\u0435\u0440\u0432\u0435\u0440, \u0432 \u0441\u0432\u043e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c, \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043a \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u043c\u0443 API -\u0431\u0440\u043e\u043a\u0435\u0440\u0430 (\u0432 \u043c\u043e\u0451\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e \u0422\u0438\u043d\u044c\u043a\u043e\u0444\u0444 \u0418\u043d\u0432\u0435\u0441\u0442\u0438\u0446\u0438\u0438), \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0441\u0442\u0430\u043a\u0430\u043d\u0430 &#8212; \u043b\u0443\u0447\u0448\u0438\u0435 BID \u0438 OFFER \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0438\u0445 \u0432 \u0432\u0438\u0434\u0435 XML-\u043e\u0442\u0432\u0435\u0442\u0430.  <\/p>\n<p>Excel \u043b\u0435\u0433\u043a\u043e \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 XML \u0447\u0435\u0440\u0435\u0437 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 (\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f Windows, \u043f\u043e\u0434 Mac \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043d\u0435 \u0431\u0443\u0434\u0435\u0442), \u0438 \u043d\u0443\u0436\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u043e\u043f\u0430\u0434\u0430\u044e\u0442 \u043f\u0440\u044f\u043c\u043e \u0432 \u044f\u0447\u0435\u0439\u043a\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u044b. <\/p>\n<p>\u041f\u043e\u043a\u0430 \u0441\u043a\u0440\u0438\u043f\u0442 \u0430\u043a\u0442\u0438\u0432\u0435\u043d, Excel \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0441\u0432\u0435\u0436\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435. \u0412\u044b\u043a\u043b\u044e\u0447\u0438\u043b\u0438 \u0441\u0435\u0440\u0432\u0435\u0440 &#8212; \u0442\u043e \u0435\u0441\u0442\u044c \u0437\u0430\u043a\u0440\u044b\u043b\u0438 bat \u0444\u0430\u0439\u043b (\u0434\u043b\u044f Windows) &#8212; \u043f\u043e\u0442\u043e\u043a \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043f\u0440\u0435\u043a\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f. \u042d\u0442\u043e \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e \u0438 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e. <\/p>\n<p>\u0412 \u0420\u043e\u0441\u0441\u0438\u0438 \u0435\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0431\u0440\u043e\u043a\u0435\u0440\u043e\u0432 \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c\u0438 API:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p align=\"left\">\u0411\u0440\u043e\u043a\u0435\u0440<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0422\u0438\u043d\u044c\u043a\u043e\u0444\u0444 (T-Invest)<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/developer.tbank.ru\/invest\/intro\/intro\" rel=\"noopener noreferrer nofollow\">https:\/\/developer.tbank.ru\/invest\/intro\/intro<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0410\u043b\u043e\u0440<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/alor.dev\/docs\/\" rel=\"noopener noreferrer nofollow\">https:\/\/alor.dev\/docs\/<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0424\u0438\u043d\u0430\u043c<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/trade-api.finam.ru\/swagger\/index.html\" rel=\"noopener noreferrer nofollow\">https:\/\/trade-api.finam.ru\/swagger\/index.html<\/a><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u0412\u044b\u0431\u043e\u0440 \u0441\u0443\u0431\u044a\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u0438 \u0434\u043b\u044f \u0441\u0435\u0431\u044f \u0432\u044b\u0431\u0440\u0430\u043b \u0422\u0438\u043d\u044c\u043a\u043e\u0444\u0444 \u0418\u043d\u0432\u0435\u0441\u0442\u0438\u0446\u0438\u0438.<\/p>\n<h2>\u041a\u0430\u043a \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c<\/h2>\n<h3>1. \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Python<\/h3>\n<p><strong>\ud83d\udda5\ufe0f Windows:<\/strong><\/p>\n<ol>\n<li>\n<p>\u0421\u043a\u0430\u0447\u0430\u0439\u0442\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0449\u0438\u043a \u0441\u00a0<a href=\"https:\/\/python.org\/downloads\/\" rel=\"noopener noreferrer nofollow\">\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430<\/a><\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435\u00a0\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u00a0\u043e\u0442\u043c\u0435\u0442\u044c\u0442\u0435:<\/p>\n<ul>\n<li>\n<p>\u2611\u00a0<code>Add Python to PATH<\/code><\/p>\n<\/li>\n<li>\n<p>\u2611\u00a0<code>Install pip<\/code><\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435:<\/p>\n<pre><code class=\"bash\">python --version pip --version<\/code><\/pre>\n<\/li>\n<\/ol>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/c32\/632\/247\/c3263224795d09ad5b14bd193c2323c9.png\" width=\"2360\" height=\"796\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/c32\/632\/247\/c3263224795d09ad5b14bd193c2323c9.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/c32\/632\/247\/c3263224795d09ad5b14bd193c2323c9.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<p><strong>\ud83d\udc27 Linux (Debian\/Ubuntu):<\/strong><\/p>\n<pre><code class=\"bash\">sudo apt update &amp;&amp; sudo apt install python3-venv python3-full -y<\/code><\/pre>\n<h3>2. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/h3>\n<p>\u0421\u043a\u0430\u0447\u0430\u0439\u0442\u0435 <a href=\"https:\/\/github.com\/empenoso\/moex2excel_BID_OFFER\/\" rel=\"noopener noreferrer nofollow\">\u043f\u0440\u043e\u0435\u043a\u0442 \u0441 GitHub<\/a>.<\/p>\n<p>1. \u0412\u043f\u0438\u0448\u0438\u0442\u0435 \u0412\u0430\u0448 \u0441\u0435\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u0442\u043e\u043a\u0435\u043d \u0432 <code>.env<\/code> \u0444\u0430\u0439\u043b \u0432 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u043f\u0430\u043f\u043a\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430:<\/p>\n<pre><code>TINKOFF_TOKEN=\"t.xxxxxxx_xxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxx_xxxxx-xxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"  # \u2190 \u0412\u0430\u0448\u0435 \u0442\u043e\u043a\u0435\u043d \u0437\u0434\u0435\u0441\u044c<\/code><\/pre>\n<p><strong>\u0413\u0434\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0442\u043e\u043a\u0435\u043d:<\/strong><\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/7d4\/941\/579\/7d4941579678dc95b014cc42b2225b7c.png\" width=\"2899\" height=\"1861\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/7d4\/941\/579\/7d4941579678dc95b014cc42b2225b7c.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/7d4\/941\/579\/7d4941579678dc95b014cc42b2225b7c.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<ul>\n<li>\n<p>\u0417\u0430\u0439\u0434\u0438\u0442\u0435 \u043d\u0430 \u0441\u0430\u0439\u0442 \u0431\u0440\u043e\u043a\u0435\u0440\u0430<\/p>\n<\/li>\n<li>\n<p>\u0418\u043d\u0432\u0435\u0441\u0442\u0438\u0446\u0438\u0438 \u2192 \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u2192 \u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0442\u043e\u043a\u0435\u043d\u0430\u043c\u0438<\/p>\n<\/li>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0442\u043e\u043a\u0435\u043d \u0441 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u044b\u043c\u0438 \u043f\u0440\u0430\u0432\u0430\u043c\u0438<\/p>\n<\/li>\n<\/ul>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/3a2\/c1d\/c4c\/3a2c1dc4cdcb607c3cda39dfe29a743d.png\" width=\"2748\" height=\"1370\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/3a2\/c1d\/c4c\/3a2c1dc4cdcb607c3cda39dfe29a743d.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/3a2\/c1d\/c4c\/3a2c1dc4cdcb607c3cda39dfe29a743d.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<p>\u041d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u043f\u0443\u0431\u043b\u0438\u043a\u0443\u0439\u0442\u0435 \u0438 \u043d\u0438\u043a\u043e\u043c\u0443 \u043d\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u044d\u0442\u043e\u0442 \u0442\u043e\u043a\u0435\u043d!<\/p>\n<p>\u0422\u043e\u043a\u0435\u043d \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 \u043a\u0430\u043a \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435:<\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/11a\/54d\/97b\/11a54d97b7cb14105a712cb9bf6c3ac8.png\" width=\"2195\" height=\"1546\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/11a\/54d\/97b\/11a54d97b7cb14105a712cb9bf6c3ac8.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/11a\/54d\/97b\/11a54d97b7cb14105a712cb9bf6c3ac8.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<p><strong>2. \u041e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u0435 requirements.txt<\/strong><\/p>\n<pre><code>tinkoff-investments  # \u0420\u0430\u0431\u043e\u0442\u0430 \u0441 API \u0422\u0438\u043d\u044c\u043a\u043e\u0444\u0444 \u0418\u043d\u0432\u0435\u0441\u0442\u0438\u0446\u0438\u0439 fastapi              # \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0438 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u043e\u0432 uvicorn              # ASGI-\u0441\u0435\u0440\u0432\u0435\u0440, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 FastAPI python-dotenv        # \u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442 \u0442\u043e\u043a\u0435\u043d \u0438\u0437 .env \u0444\u0430\u0439\u043b\u0430<\/code><\/pre>\n<h2>3. \u0417\u0430\u043f\u0443\u0441\u043a \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/h2>\n<h2>\ud83d\udda5\ufe0f Windows: \u0437\u0430\u043f\u0443\u0441\u043a \u0447\u0435\u0440\u0435\u0437 .bat \u0444\u0430\u0439\u043b\u044b<\/h2>\n<p>\u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 Windows, \u0442\u043e:<\/p>\n<p><strong>1_install_requirements.bat &#8212; \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439<\/strong><\/p>\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0434\u0432\u043e\u0439\u043d\u044b\u043c \u043a\u043b\u0438\u043a\u043e\u043c &#8212; \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u044f\u0442\u0441\u044f \u043d\u0443\u0436\u043d\u044b\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438.<\/p>\n<p><strong>2_start_server.bat &#8212; \u0437\u0430\u043f\u0443\u0441\u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/strong><\/p>\n<p>\u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0437\u0430\u043f\u0443\u0441\u043a \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043d\u0430 localhost:8000. \u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442 \u0432\u0441\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0435.<\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/f9e\/7e7\/532\/f9e7e75320962599137d186f69a4ee1a.png\" alt=\"\u041f\u043e\u0434 Windows \u0432\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442\" title=\"\u041f\u043e\u0434 Windows \u0432\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442\" width=\"2874\" height=\"1047\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/f9e\/7e7\/532\/f9e7e75320962599137d186f69a4ee1a.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/f9e\/7e7\/532\/f9e7e75320962599137d186f69a4ee1a.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u041f\u043e\u0434 Windows \u0432\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442<\/figcaption><\/div>\n<\/figure>\n<h2>\ud83d\udc27 Linux: \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430<\/h2>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439:<\/p>\n<pre><code>python3 -m venv .venv source .venv\/bin\/activate pip install -r requirements.txt pip list deactivate<\/code><\/pre>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/3c9\/ea4\/059\/3c9ea405992d748b0385a46795b95d38.png\" width=\"1158\" height=\"923\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/3c9\/ea4\/059\/3c9ea405992d748b0385a46795b95d38.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/3c9\/ea4\/059\/3c9ea405992d748b0385a46795b95d38.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0430:<\/p>\n<pre><code class=\"bash\">source .venv\/bin\/activate uvicorn server:app --host 127.0.0.1 --port 8000<\/code><\/pre>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/d5e\/8c6\/fe3\/d5e8c6fe3d2c1fd2427b51f369760834.png\" alt=\"\u0427\u0435\u0440\u0435\u0437 LibreOffice Calc \u0432 Ubuntu \u0432\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442\" title=\"\u0427\u0435\u0440\u0435\u0437 LibreOffice Calc \u0432 Ubuntu \u0432\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442\" width=\"1763\" height=\"1228\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/d5e\/8c6\/fe3\/d5e8c6fe3d2c1fd2427b51f369760834.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/d5e\/8c6\/fe3\/d5e8c6fe3d2c1fd2427b51f369760834.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u0427\u0435\u0440\u0435\u0437 LibreOffice Calc \u0432 Ubuntu \u0432\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442<\/figcaption><\/div>\n<\/figure>\n<h2>\u041a\u0430\u043a \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0447\u0442\u043e \u0432\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442<\/h2>\n<ol>\n<li>\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u0441\u0435\u0440\u0432\u0435\u0440 (BAT \u0438\u043b\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 uvicorn).<\/p>\n<\/li>\n<li>\n<p>\u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u0438 \u0432\u0432\u0435\u0434\u0438\u0442\u0435:<\/p>\n<\/li>\n<\/ol>\n<pre><code>http:\/\/127.0.0.1:8000\/orderbook.xml?ticker=SBER&amp;class_code=TQBR<\/code><\/pre>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/f73\/ddc\/f69\/f73ddcf69f939398404aca5417e52690.png\" width=\"2128\" height=\"985\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/f73\/ddc\/f69\/f73ddcf69f939398404aca5417e52690.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/f73\/ddc\/f69\/f73ddcf69f939398404aca5417e52690.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<p>\u0415\u0441\u043b\u0438 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u043a\u0430\u043a \u043d\u0430 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0435 &#8212; \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0439\u0442\u0435 \u042d\u043a\u0441\u0435\u043b\u044c \u043f\u043e\u0434 Windows:<\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/b81\/aa4\/87a\/b81aa487a3a8a99518d418c1f40ea925.png\" width=\"2225\" height=\"1507\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/b81\/aa4\/87a\/b81aa487a3a8a99518d418c1f40ea925.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/b81\/aa4\/87a\/b81aa487a3a8a99518d418c1f40ea925.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<p>\u041a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u044f Ctrl + Alt + F9 \u044d\u0442\u043e \u043f\u043e\u043b\u043d\u044b\u0439 \u043f\u0435\u0440\u0435\u0441\u0447\u0451\u0442 \u0432\u0441\u0435\u0445 \u0444\u043e\u0440\u043c\u0443\u043b \u0432\u043e \u0432\u0441\u0435\u0445 \u043b\u0438\u0441\u0442\u0430\u0445:<\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/7a7\/f44\/11a\/7a7f4411a2d927742f95c114ccc7a6c1.png\" width=\"2208\" height=\"1493\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/7a7\/f44\/11a\/7a7f4411a2d927742f95c114ccc7a6c1.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/7a7\/f44\/11a\/7a7f4411a2d927742f95c114ccc7a6c1.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<h2>\u0413\u043b\u0430\u0432\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442: server.py<\/h2>\n<p>\u0427\u0442\u043e \u043e\u043d \u0434\u0435\u043b\u0430\u0435\u0442:<\/p>\n<h3>1. \u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442 \u0442\u043e\u043a\u0435\u043d \u0434\u043e\u0441\u0442\u0443\u043f\u0430<\/h3>\n<pre><code class=\"python\">load_dotenv() TOKEN = os.getenv(\"TINKOFF_TOKEN\")<\/code><\/pre>\n<p>\u0421\u043a\u0440\u0438\u043f\u0442 \u0431\u0435\u0440\u0435\u0442 API-\u0442\u043e\u043a\u0435\u043d \u0438\u0437 <code>.env<\/code> \u0444\u0430\u0439\u043b\u0430 &#8212; \u044d\u0442\u043e \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f.<\/p>\n<h3>2. \u0421\u043e\u0437\u0434\u0430\u0435\u0442 HTTP-\u0441\u0435\u0440\u0432\u0435\u0440 \u0441 \u043e\u0434\u043d\u0438\u043c \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u043e\u043c \/orderbook.xml<\/h3>\n<pre><code class=\"python\">@app.get(\"\/orderbook.xml\")<\/code><\/pre>\n<p>\u041a\u043e\u0433\u0434\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u044d\u0442\u043e\u043c\u0443 \u0430\u0434\u0440\u0435\u0441\u0443 \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 <code>ticker<\/code> \u0438 <code>class_code<\/code>, \u0441\u043a\u0440\u0438\u043f\u0442 \u0434\u0435\u043b\u0430\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<h3>3. \u041d\u0430\u0445\u043e\u0434\u0438\u0442 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u043f\u043e \u0442\u0438\u043a\u0435\u0440\u0443<\/h3>\n<pre><code class=\"python\">instrument_response = client.instruments.get_instrument_by(...)<\/code><\/pre>\n<p>\u041e\u043d \u0438\u0449\u0435\u0442 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0430\u043a\u0446\u0438\u044e \u0438\u043b\u0438 \u0444\u044c\u044e\u0447\u0435\u0440\u0441), \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0442\u0438\u043a\u0435\u0440 \u0438 \u043a\u043e\u0434 \u043a\u043b\u0430\u0441\u0441\u0430 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <code>\"TQBR\"<\/code> &#8212; \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0440\u044b\u043d\u043e\u043a \u0430\u043a\u0446\u0438\u0439, <code>\"SPBFUT\"<\/code> &#8212; \u0444\u044c\u044e\u0447\u0435\u0440\u0441\u044b).<\/p>\n<h3>4. \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u043b\u0443\u0447\u0448\u0438\u0435 BID \u0438 OFFER<\/h3>\n<pre><code class=\"python\">orderbook = client.market_data.get_order_book(...)<\/code><\/pre>\n<p>\u0421\u043a\u0440\u0438\u043f\u0442 \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442 &#171;\u0441\u0442\u0430\u043a\u0430\u043d&#187; \u0437\u0430\u044f\u0432\u043e\u043a (Order Book) \u0438 \u0431\u0435\u0440\u0435\u0442 \u0438\u0437 \u043d\u0435\u0433\u043e \u0441\u0430\u043c\u0443\u044e \u0432\u044b\u0433\u043e\u0434\u043d\u0443\u044e \u0446\u0435\u043d\u0443 \u043d\u0430 \u043f\u043e\u043a\u0443\u043f\u043a\u0443 (<code>bid<\/code>) \u0438 \u043f\u0440\u043e\u0434\u0430\u0436\u0443 (<code>offer<\/code>) \u0441 \u0433\u043b\u0443\u0431\u0438\u043d\u043e\u0439 1 (\u0442\u043e \u0435\u0441\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0435\u0440\u0432\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443).<\/p>\n<h3>5. \u0424\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442 XML<\/h3>\n<pre><code class=\"xml\">&lt;orderbook&gt; &lt;ticker&gt;SBER&lt;\/ticker&gt; &lt;class_code&gt;TQBR&lt;\/class_code&gt; &lt;name&gt;\u0421\u0431\u0435\u0440 \u0411\u0430\u043d\u043a&lt;\/name&gt; &lt;bid&gt;304,910&lt;\/bid&gt; &lt;offer&gt;304,920&lt;\/offer&gt; &lt;\/orderbook&gt;<\/code><\/pre>\n<p>\u0421\u043e\u0431\u0438\u0440\u0430\u0435\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432 XML-\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442, \u043f\u0440\u0438\u0433\u043e\u0434\u043d\u044b\u0439 \u0434\u043b\u044f Excel.<\/p>\n<h3>6. \u041e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u043e\u0448\u0438\u0431\u043a\u0438<\/h3>\n<p>\u0415\u0441\u043b\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d (\u043e\u0448\u0438\u0431\u043a\u0430 \u0432 \u0442\u0438\u043a\u0435\u0440\u0435 \u0438\u043b\u0438 class_code), \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f XML \u0441 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0438:<\/p>\n<pre><code class=\"xml\">&lt;error&gt;\u0418\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d&lt;\/error&gt;<\/code><\/pre>\n<h2>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h2>\n<p><a href=\"https:\/\/github.com\/empenoso\/moex2excel_BID_OFFER\/\" rel=\"noopener noreferrer nofollow\">\u041f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u043c\u044b\u0439 \u043c\u043d\u043e\u0439 \u043f\u043e\u0434\u0445\u043e\u0434<\/a> &#8212; \u043d\u0435 \u0432\u0437\u043b\u043e\u043c, \u0430 \u0443\u043c\u043d\u043e\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439. <\/p>\n<p>\u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u043c\u0443 API \u0431\u0440\u043e\u043a\u0435\u0440\u0430 \u0438 \u043f\u0440\u043e\u0441\u0442\u043e\u043c\u0443 \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u043d\u0430 Python, \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 \u043b\u0443\u0447\u0448\u0438\u0445 BID \u0438 OFFER \u0432 Excel &#8212; \u0431\u0435\u0437 \u043f\u043e\u0434\u043f\u0438\u0441\u043e\u043a \u0438 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0439. <\/p>\n<p>\u041d\u043e \u043d\u0430 \u044d\u0442\u043e\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043d\u0435 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u044e\u0442\u0441\u044f: \u043f\u0440\u043e\u0435\u043a\u0442 \u043e\u0442\u043a\u0440\u044b\u0442 (<a href=\"https:\/\/github.com\/empenoso\/moex2excel_BID_OFFER\/\" rel=\"noopener noreferrer nofollow\">open source<\/a>), \u0430 \u0437\u043d\u0430\u0447\u0438\u0442, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043b\u0435\u0433\u043a\u043e \u0430\u0434\u0430\u043f\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u043f\u043e\u0434 \u043b\u044e\u0431\u044b\u0435 \u043d\u0443\u0436\u0434\u044b &#8212; \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u0430\u043a\u0430\u043d, \u043d\u043e \u0438 \u043b\u044e\u0431\u044b\u0435 \u0434\u0440\u0443\u0433\u0438\u0435 \u0440\u044b\u043d\u043e\u0447\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435. <\/p>\n<p>\u0425\u043e\u0442\u0438\u0442\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 &#8212; \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u0439\u0442\u0435 \u0441\u0430\u043c\u0438 \u0438\u043b\u0438 \u0437\u0430\u043a\u0430\u0436\u0438\u0442\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f. \u0412\u0441\u0451 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e, \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e \u0438 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043f\u043e\u0434 \u0432\u0430\u0448\u0438\u043c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0435\u043c. <\/p>\n<p><strong>\u0410\u0432\u0442\u043e\u0440:<\/strong> \u041c\u0438\u0445\u0430\u0438\u043b \u0428\u0430\u0440\u0434\u0438\u043d<br \/> <a href=\"https:\/\/shardin.name\/?utm_source=habr\" rel=\"noopener noreferrer nofollow\">\ud83d\udd17 \u041c\u043e\u044f \u043e\u043d\u043b\u0430\u0439\u043d-\u0432\u0438\u0437\u0438\u0442\u043a\u0430<\/a><br \/> <a href=\"https:\/\/t.me\/+ros3jcpKDb8xODhi\" rel=\"noopener noreferrer nofollow\">\ud83d\udce2 Telegram \u00ab\u0423\u043c\u043d\u044b\u0439 \u0414\u043e\u043c \u0418\u043d\u0432\u0435\u0441\u0442\u043e\u0440\u0430\u00bb<\/a><\/p>\n<p>15 \u0438\u044e\u043b\u044f 2025 \u0433\u043e\u0434\u0430<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/927238\/\"> https:\/\/habr.com\/ru\/articles\/927238\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>Excel &#8212; \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u043c\u043d\u043e\u0433\u0438\u0445 \u0447\u0430\u0441\u0442\u043d\u044b\u0445 \u0438\u043d\u0432\u0435\u0441\u0442\u043e\u0440\u043e\u0432. \u0417\u0434\u0435\u0441\u044c \u0432\u0435\u0434\u0443\u0442 \u043f\u043e\u0440\u0442\u0444\u0435\u043b\u0438, \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0438 \u0438 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u043a\u043e\u0442\u0438\u0440\u043e\u0432\u043e\u043a. \u041d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043e\u0442 \u041c\u043e\u0441\u043a\u043e\u0432\u0441\u043a\u043e\u0439 \u0431\u0438\u0440\u0436\u0438 \u043b\u0443\u0447\u0448\u0438\u0435 \u0446\u0435\u043d\u044b \u043d\u0430 \u043f\u043e\u043a\u0443\u043f\u043a\u0443 (BID) \u0438 \u043f\u0440\u043e\u0434\u0430\u0436\u0443 (OFFER) \u0438\u0437 \u0441\u0442\u0430\u043a\u0430\u043d\u0430 \u043f\u0440\u044f\u043c\u043e \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 &#8212; \u0437\u0430\u0434\u0430\u0447\u0430 \u043d\u0435 \u0438\u0437 \u043f\u0440\u043e\u0441\u0442\u044b\u0445. \u0414\u0430\u0436\u0435 \u043f\u043b\u0430\u0442\u043d\u0430\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0430 \u043d\u0430 \u0441\u0430\u0439\u0442 \u0431\u0438\u0440\u0436\u0438 \u043d\u0435 \u0434\u0430\u0451\u0442 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u043a\u043e\u0442\u0438\u0440\u043e\u0432\u043a\u0438 \u0432 Excel \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e.<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u041d\u043e \u0441\u043b\u043e\u0432\u043e \u00ab\u0432\u0437\u043b\u043e\u043c\u00bb \u0432 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0438 \u0441\u0442\u0430\u0442\u044c\u0438 &#8212; \u044d\u0442\u043e \u0445\u0443\u0434\u043e\u0436\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u043f\u0440\u0435\u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435. \u041c\u044b \u043d\u0435 \u0431\u0443\u0434\u0435\u043c \u043d\u0430\u0440\u0443\u0448\u0430\u0442\u044c \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u0437\u0430\u043a\u043e\u043d\u043e\u0432 \u0438\u043b\u0438 \u043f\u044b\u0442\u0430\u0442\u044c\u0441\u044f \u043e\u0431\u043e\u0439\u0442\u0438 \u0437\u0430\u0449\u0438\u0442\u0443 \u0431\u0438\u0440\u0436\u0438 \u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u0434\u0430\u0436\u0435 \u043d\u0435 \u0434\u044b\u0448\u0438\u043c \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u041c\u043e\u0441\u0431\u0438\u0440\u0436\u0438. \u041e\u0434\u043d\u0430\u043a\u043e \u0433\u043e\u043b\u044c \u043d\u0430 \u0432\u044b\u0434\u0443\u043c\u043a\u0438 \u0445\u0438\u0442\u0440\u0430 &#8212; \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u043c \u044d\u043b\u0435\u0433\u0430\u043d\u0442\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e API \u043e\u0442 \u043b\u044e\u0431\u043e\u0433\u043e \u0431\u0440\u043e\u043a\u0435\u0440\u0430.<\/p>\n<p>\u0418\u0434\u0435\u044f \u043f\u0440\u043e\u0441\u0442\u0430: \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440-\u043f\u0440\u043e\u043a\u043b\u0430\u0434\u043a\u0443, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 Excel \u0441\u043c\u043e\u0436\u0435\u0442 \u043e\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u0432\u0435\u0431-\u0437\u0430\u043f\u0440\u043e\u0441\u044b. \u0421\u0435\u0440\u0432\u0435\u0440 \u0431\u0443\u0434\u0435\u0442 \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u043a API \u0431\u0440\u043e\u043a\u0435\u0440\u0430, \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0441\u0442\u0430\u043a\u0430\u043d\u0430 \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c \u0438\u0445 \u0432 \u043f\u043e\u043d\u044f\u0442\u043d\u043e\u043c \u0434\u043b\u044f \u0441\u0435\u0431\u044f XML \u0444\u043e\u0440\u043c\u0430\u0442\u0435 \u043f\u0440\u044f\u043c\u043e \u0432 \u0432\u0430\u0448\u0443 \u0442\u0430\u0431\u043b\u0438\u0446\u0443, \u0432 \u044f\u0447\u0435\u0439\u043a\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0430 \u043d\u0443\u0436\u043d\u0430\u044f \u0446\u0438\u0444\u0440\u0430. <\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0424\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u043e \u0442\u0430\u043a\u043e\u0439 \u0441\u0445\u0435\u043c\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u043b\u044e\u0431\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0441 \u0431\u0438\u0440\u0436\u0438 \u0438 \u0432\u0438\u0434\u0435\u0442\u044c \u0438\u0445 \u0432 \u0441\u0432\u043e\u0451\u043c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u043c Microsoft Excel \u0438\u043b\u0438 \u0435\u0433\u043e \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u043c \u0430\u043d\u0430\u043b\u043e\u0433\u0435 LibreOffice Calc.<\/p>\n<h3>\u041a\u0430\u043a \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c: \u0441\u0445\u0435\u043c\u0430<\/h3>\n<figure class=\"full-width\"><\/figure>\n<p>\u0412\u0441\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0441\u0442\u0440\u043e\u0438\u0442\u0441\u044f \u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0446\u0435\u043f\u043e\u0447\u043a\u0435, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u0443 \u0441\u0435\u0431\u044f \u0437\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u0438\u043d\u0443\u0442, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e <a href=\"https:\/\/github.com\/empenoso\/moex2excel_BID_OFFER\/\" rel=\"noopener noreferrer nofollow\">\u043a\u043e\u0434 \u0432\u044b\u043b\u043e\u0436\u0435\u043d \u043d\u0430 GitHub<\/a>. <\/p>\n<p>Excel \u0434\u0435\u043b\u0430\u0435\u0442 \u0432\u0435\u0431-\u0437\u0430\u043f\u0440\u043e\u0441 &#8212; \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043d\u0430 \u0430\u0434\u0440\u0435\u0441 <a href=\"http:\/\/127.0.0.1:8000\/orderbook.xml?ticker=SiU5&amp;class_code=SPBFUT%60\" rel=\"noopener noreferrer nofollow\"><code>http:\/\/127.0.0.1:8000\/orderbook.xml?ticker=SiU5&amp;class_code=SPBFUT<\/code><\/a>. \u042d\u0442\u043e\u0442 \u0437\u0430\u043f\u0440\u043e\u0441 \u043f\u043e\u0441\u0442\u0443\u043f\u0430\u0435\u0442 \u043d\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440, \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0439 \u043d\u0430 FastAPI. \u0421\u0435\u0440\u0432\u0435\u0440, \u0432 \u0441\u0432\u043e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c, \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043a \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u043c\u0443 API -\u0431\u0440\u043e\u043a\u0435\u0440\u0430 (\u0432 \u043c\u043e\u0451\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e \u0422\u0438\u043d\u044c\u043a\u043e\u0444\u0444 \u0418\u043d\u0432\u0435\u0441\u0442\u0438\u0446\u0438\u0438), \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0441\u0442\u0430\u043a\u0430\u043d\u0430 &#8212; \u043b\u0443\u0447\u0448\u0438\u0435 BID \u0438 OFFER \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0438\u0445 \u0432 \u0432\u0438\u0434\u0435 XML-\u043e\u0442\u0432\u0435\u0442\u0430.  <\/p>\n<p>Excel \u043b\u0435\u0433\u043a\u043e \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 XML \u0447\u0435\u0440\u0435\u0437 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 (\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f Windows, \u043f\u043e\u0434 Mac \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043d\u0435 \u0431\u0443\u0434\u0435\u0442), \u0438 \u043d\u0443\u0436\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u043e\u043f\u0430\u0434\u0430\u044e\u0442 \u043f\u0440\u044f\u043c\u043e \u0432 \u044f\u0447\u0435\u0439\u043a\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u044b. <\/p>\n<p>\u041f\u043e\u043a\u0430 \u0441\u043a\u0440\u0438\u043f\u0442 \u0430\u043a\u0442\u0438\u0432\u0435\u043d, Excel \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0441\u0432\u0435\u0436\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435. \u0412\u044b\u043a\u043b\u044e\u0447\u0438\u043b\u0438 \u0441\u0435\u0440\u0432\u0435\u0440 &#8212; \u0442\u043e \u0435\u0441\u0442\u044c \u0437\u0430\u043a\u0440\u044b\u043b\u0438 bat \u0444\u0430\u0439\u043b (\u0434\u043b\u044f Windows) &#8212; \u043f\u043e\u0442\u043e\u043a \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043f\u0440\u0435\u043a\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f. \u042d\u0442\u043e \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e \u0438 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e. <\/p>\n<p>\u0412 \u0420\u043e\u0441\u0441\u0438\u0438 \u0435\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0431\u0440\u043e\u043a\u0435\u0440\u043e\u0432 \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c\u0438 API:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p align=\"left\">\u0411\u0440\u043e\u043a\u0435\u0440<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0422\u0438\u043d\u044c\u043a\u043e\u0444\u0444 (T-Invest)<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/developer.tbank.ru\/invest\/intro\/intro\" rel=\"noopener noreferrer nofollow\">https:\/\/developer.tbank.ru\/invest\/intro\/intro<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0410\u043b\u043e\u0440<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/alor.dev\/docs\/\" rel=\"noopener noreferrer nofollow\">https:\/\/alor.dev\/docs\/<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0424\u0438\u043d\u0430\u043c<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/trade-api.finam.ru\/swagger\/index.html\" rel=\"noopener noreferrer nofollow\">https:\/\/trade-api.finam.ru\/swagger\/index.html<\/a><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u0412\u044b\u0431\u043e\u0440 \u0441\u0443\u0431\u044a\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u0438 \u0434\u043b\u044f \u0441\u0435\u0431\u044f \u0432\u044b\u0431\u0440\u0430\u043b \u0422\u0438\u043d\u044c\u043a\u043e\u0444\u0444 \u0418\u043d\u0432\u0435\u0441\u0442\u0438\u0446\u0438\u0438.<\/p>\n<h2>\u041a\u0430\u043a \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c<\/h2>\n<h3>1. \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Python<\/h3>\n<p><strong>\ud83d\udda5\ufe0f Windows:<\/strong><\/p>\n<ol>\n<li>\n<p>\u0421\u043a\u0430\u0447\u0430\u0439\u0442\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0449\u0438\u043a \u0441\u00a0<a href=\"https:\/\/python.org\/downloads\/\" rel=\"noopener noreferrer nofollow\">\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430<\/a><\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435\u00a0\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u00a0\u043e\u0442\u043c\u0435\u0442\u044c\u0442\u0435:<\/p>\n<ul>\n<li>\n<p>\u2611\u00a0<code>Add Python to PATH<\/code><\/p>\n<\/li>\n<li>\n<p>\u2611\u00a0<code>Install pip<\/code><\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435:<\/p>\n<pre><code class=\"bash\">python --version pip --version<\/code><\/pre>\n<\/li>\n<\/ol>\n<figure class=\"full-width\"><\/figure>\n<p><strong>\ud83d\udc27 Linux (Debian\/Ubuntu):<\/strong><\/p>\n<pre><code class=\"bash\">sudo apt update &amp;&amp; sudo apt install python3-venv python3-full -y<\/code><\/pre>\n<h3>2. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/h3>\n<p>\u0421\u043a\u0430\u0447\u0430\u0439\u0442\u0435 <a href=\"https:\/\/github.com\/empenoso\/moex2excel_BID_OFFER\/\" rel=\"noopener noreferrer nofollow\">\u043f\u0440\u043e\u0435\u043a\u0442 \u0441 GitHub<\/a>.<\/p>\n<p>1. \u0412\u043f\u0438\u0448\u0438\u0442\u0435 \u0412\u0430\u0448 \u0441\u0435\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u0442\u043e\u043a\u0435\u043d \u0432 <code>.env<\/code> \u0444\u0430\u0439\u043b \u0432 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u043f\u0430\u043f\u043a\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430:<\/p>\n<pre><code>TINKOFF_TOKEN=\"t.xxxxxxx_xxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxx_xxxxx-xxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"  # \u2190 \u0412\u0430\u0448\u0435 \u0442\u043e\u043a\u0435\u043d \u0437\u0434\u0435\u0441\u044c<\/code><\/pre>\n<p><strong>\u0413\u0434\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0442\u043e\u043a\u0435\u043d:<\/strong><\/p>\n<figure class=\"full-width\"><\/figure>\n<ul>\n<li>\n<p>\u0417\u0430\u0439\u0434\u0438\u0442\u0435 \u043d\u0430 \u0441\u0430\u0439\u0442 \u0431\u0440\u043e\u043a\u0435\u0440\u0430<\/p>\n<\/li>\n<li>\n<p>\u0418\u043d\u0432\u0435\u0441\u0442\u0438\u0446\u0438\u0438 \u2192 \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u2192 \u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0442\u043e\u043a\u0435\u043d\u0430\u043c\u0438<\/p>\n<\/li>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0442\u043e\u043a\u0435\u043d \u0441 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u044b\u043c\u0438 \u043f\u0440\u0430\u0432\u0430\u043c\u0438<\/p>\n<\/li>\n<\/ul>\n<figure class=\"full-width\"><\/figure>\n<p>\u041d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u043f\u0443\u0431\u043b\u0438\u043a\u0443\u0439\u0442\u0435 \u0438 \u043d\u0438\u043a\u043e\u043c\u0443 \u043d\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u044d\u0442\u043e\u0442 \u0442\u043e\u043a\u0435\u043d!<\/p>\n<p>\u0422\u043e\u043a\u0435\u043d \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 \u043a\u0430\u043a \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435:<\/p>\n<figure class=\"full-width\"><\/figure>\n<p><strong>2. \u041e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u0435 requirements.txt<\/strong><\/p>\n<pre><code>tinkoff-investments  # \u0420\u0430\u0431\u043e\u0442\u0430 \u0441 API \u0422\u0438\u043d\u044c\u043a\u043e\u0444\u0444 \u0418\u043d\u0432\u0435\u0441\u0442\u0438\u0446\u0438\u0439 fastapi              # \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0438 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u043e\u0432 uvicorn              # ASGI-\u0441\u0435\u0440\u0432\u0435\u0440, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 FastAPI python-dotenv        # \u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442 \u0442\u043e\u043a\u0435\u043d \u0438\u0437 .env \u0444\u0430\u0439\u043b\u0430<\/code><\/pre>\n<h2>3. \u0417\u0430\u043f\u0443\u0441\u043a \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/h2>\n<h2>\ud83d\udda5\ufe0f Windows: \u0437\u0430\u043f\u0443\u0441\u043a \u0447\u0435\u0440\u0435\u0437 .bat \u0444\u0430\u0439\u043b\u044b<\/h2>\n<p>\u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 Windows, \u0442\u043e:<\/p>\n<p><strong>1_install_requirements.bat &#8212; \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439<\/strong><\/p>\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0434\u0432\u043e\u0439\u043d\u044b\u043c \u043a\u043b\u0438\u043a\u043e\u043c &#8212; \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u044f\u0442\u0441\u044f \u043d\u0443\u0436\u043d\u044b\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438.<\/p>\n<p><strong>2_start_server.bat &#8212; \u0437\u0430\u043f\u0443\u0441\u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/strong><\/p>\n<p>\u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0437\u0430\u043f\u0443\u0441\u043a \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043d\u0430 localhost:8000. \u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442 \u0432\u0441\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0435.<\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u041f\u043e\u0434 Windows \u0432\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442<\/figcaption><\/div>\n<\/figure>\n<h2>\ud83d\udc27 Linux: \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430<\/h2>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439:<\/p>\n<pre><code>python3 -m venv .venv source .venv\/bin\/activate pip install -r requirements.txt pip list deactivate<\/code><\/pre>\n<figure class=\"full-width\"><\/figure>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0430:<\/p>\n<pre><code class=\"bash\">source .venv\/bin\/activate uvicorn server:app --host 127.0.0.1 --port 8000<\/code><\/pre>\n<figure class=\"full-width\">\n<div><figcaption>\u0427\u0435\u0440\u0435\u0437 LibreOffice Calc \u0432 Ubuntu \u0432\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442<\/figcaption><\/div>\n<\/figure>\n<h2>\u041a\u0430\u043a \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0447\u0442\u043e \u0432\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442<\/h2>\n<ol>\n<li>\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u0441\u0435\u0440\u0432\u0435\u0440 (BAT \u0438\u043b\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 uvicorn).<\/p>\n<\/li>\n<li>\n<p>\u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u0438 \u0432\u0432\u0435\u0434\u0438\u0442\u0435:<\/p>\n<\/li>\n<\/ol>\n<pre><code>http:\/\/127.0.0.1:8000\/orderbook.xml?ticker=SBER&amp;class_code=TQBR<\/code><\/pre>\n<figure class=\"full-width\"><\/figure>\n<p>\u0415\u0441\u043b\u0438 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u043a\u0430\u043a \u043d\u0430 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0435 &#8212; \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0439\u0442\u0435 \u042d\u043a\u0441\u0435\u043b\u044c \u043f\u043e\u0434 Windows:<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u041a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u044f Ctrl + Alt + F9 \u044d\u0442\u043e \u043f\u043e\u043b\u043d\u044b\u0439 \u043f\u0435\u0440\u0435\u0441\u0447\u0451\u0442 \u0432\u0441\u0435\u0445 \u0444\u043e\u0440\u043c\u0443\u043b \u0432\u043e \u0432\u0441\u0435\u0445 \u043b\u0438\u0441\u0442\u0430\u0445:<\/p>\n<figure class=\"full-width\"><\/figure>\n<h2>\u0413\u043b\u0430\u0432\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442: server.py<\/h2>\n<p>\u0427\u0442\u043e \u043e\u043d \u0434\u0435\u043b\u0430\u0435\u0442:<\/p>\n<h3>1. \u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442 \u0442\u043e\u043a\u0435\u043d \u0434\u043e\u0441\u0442\u0443\u043f\u0430<\/h3>\n<pre><code class=\"python\">load_dotenv() TOKEN = os.getenv(\"TINKOFF_TOKEN\")<\/code><\/pre>\n<p>\u0421\u043a\u0440\u0438\u043f\u0442 \u0431\u0435\u0440\u0435\u0442 API-\u0442\u043e\u043a\u0435\u043d \u0438\u0437 <code>.env<\/code> \u0444\u0430\u0439\u043b\u0430 &#8212; \u044d\u0442\u043e \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f.<\/p>\n<h3>2. \u0421\u043e\u0437\u0434\u0430\u0435\u0442 HTTP-\u0441\u0435\u0440\u0432\u0435\u0440 \u0441 \u043e\u0434\u043d\u0438\u043c \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u043e\u043c \/orderbook.xml<\/h3>\n<pre><code class=\"python\">@app.get(\"\/orderbook.xml\")<\/code><\/pre>\n<p>\u041a\u043e\u0433\u0434\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u044d\u0442\u043e\u043c\u0443 \u0430\u0434\u0440\u0435\u0441\u0443 \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 <code>ticker<\/code> \u0438 <code>class_code<\/code>, \u0441\u043a\u0440\u0438\u043f\u0442 \u0434\u0435\u043b\u0430\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<h3>3. \u041d\u0430\u0445\u043e\u0434\u0438\u0442 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u043f\u043e \u0442\u0438\u043a\u0435\u0440\u0443<\/h3>\n<pre><code class=\"python\">instrument_response = client.instruments.get_instrument_by(...)<\/code><\/pre>\n<p>\u041e\u043d \u0438\u0449\u0435\u0442 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0430\u043a\u0446\u0438\u044e \u0438\u043b\u0438 \u0444\u044c\u044e\u0447\u0435\u0440\u0441), \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0442\u0438\u043a\u0435\u0440 \u0438 \u043a\u043e\u0434 \u043a\u043b\u0430\u0441\u0441\u0430 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <code>\"TQBR\"<\/code> &#8212; \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0440\u044b\u043d\u043e\u043a \u0430\u043a\u0446\u0438\u0439, <code>\"SPBFUT\"<\/code> &#8212; \u0444\u044c\u044e\u0447\u0435\u0440\u0441\u044b).<\/p>\n<h3>4. \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u043b\u0443\u0447\u0448\u0438\u0435 BID \u0438 OFFER<\/h3>\n<pre><code class=\"python\">orderbook = client.market_data.get_order_book(...)<\/code><\/pre>\n<p>\u0421\u043a\u0440\u0438\u043f\u0442 \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442 &#171;\u0441\u0442\u0430\u043a\u0430\u043d&#187; \u0437\u0430\u044f\u0432\u043e\u043a (Order Book) \u0438 \u0431\u0435\u0440\u0435\u0442 \u0438\u0437 \u043d\u0435\u0433\u043e \u0441\u0430\u043c\u0443\u044e \u0432\u044b\u0433\u043e\u0434\u043d\u0443\u044e \u0446\u0435\u043d\u0443 \u043d\u0430 \u043f\u043e\u043a\u0443\u043f\u043a\u0443 (<code>bid<\/code>) \u0438 \u043f\u0440\u043e\u0434\u0430\u0436\u0443 (<code>offer<\/code>) \u0441 \u0433\u043b\u0443\u0431\u0438\u043d\u043e\u0439 1 (\u0442\u043e \u0435\u0441\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0435\u0440\u0432\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443).<\/p>\n<h3>5. \u0424\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442 XML<\/h3>\n<pre><code class=\"xml\">&lt;orderbook&gt; &lt;ticker&gt;SBER&lt;\/ticker&gt; &lt;class_code&gt;TQBR&lt;\/class_code&gt; &lt;name&gt;\u0421\u0431\u0435\u0440 \u0411\u0430\u043d\u043a&lt;\/name&gt; &lt;bid&gt;304,910&lt;\/bid&gt; &lt;offer&gt;304,920&lt;\/offer&gt; &lt;\/orderbook&gt;<\/code><\/pre>\n<p>\u0421\u043e\u0431\u0438\u0440\u0430\u0435\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432 XML-\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442, \u043f\u0440\u0438\u0433\u043e\u0434\u043d\u044b\u0439 \u0434\u043b\u044f Excel.<\/p>\n<h3>6. \u041e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u043e\u0448\u0438\u0431\u043a\u0438<\/h3>\n<p>\u0415\u0441\u043b\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d (\u043e\u0448\u0438\u0431\u043a\u0430 \u0432 \u0442\u0438\u043a\u0435\u0440\u0435 \u0438\u043b\u0438 class_code), \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f XML \u0441 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0438:<\/p>\n<pre><code class=\"xml\">&lt;error&gt;\u0418\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d&lt;\/error&gt;<\/code><\/pre>\n<h2>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h2>\n<p><a href=\"https:\/\/github.com\/empenoso\/moex2excel_BID_OFFER\/\" rel=\"noopener noreferrer nofollow\">\u041f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u043c\u044b\u0439 \u043c\u043d\u043e\u0439 \u043f\u043e\u0434\u0445\u043e\u0434<\/a> &#8212; \u043d\u0435 \u0432\u0437\u043b\u043e\u043c, \u0430 \u0443\u043c\u043d\u043e\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439. <\/p>\n<p>\u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u043c\u0443 API \u0431\u0440\u043e\u043a\u0435\u0440\u0430 \u0438 \u043f\u0440\u043e\u0441\u0442\u043e\u043c\u0443 \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u043d\u0430 Python, \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 \u043b\u0443\u0447\u0448\u0438\u0445 BID \u0438 OFFER \u0432 Excel &#8212; \u0431\u0435\u0437 \u043f\u043e\u0434\u043f\u0438\u0441\u043e\u043a \u0438 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0439. <\/p>\n<p>\u041d\u043e \u043d\u0430 \u044d\u0442\u043e\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043d\u0435 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u044e\u0442\u0441\u044f: \u043f\u0440\u043e\u0435\u043a\u0442 \u043e\u0442\u043a\u0440\u044b\u0442 (<a href=\"https:\/\/github.com\/empenoso\/moex2excel_BID_OFFER\/\" rel=\"noopener noreferrer nofollow\">open source<\/a>), \u0430 \u0437\u043d\u0430\u0447\u0438\u0442, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043b\u0435\u0433\u043a\u043e \u0430\u0434\u0430\u043f\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u043f\u043e\u0434 \u043b\u044e\u0431\u044b\u0435 \u043d\u0443\u0436\u0434\u044b &#8212; \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u0430\u043a\u0430\u043d, \u043d\u043e \u0438 \u043b\u044e\u0431\u044b\u0435 \u0434\u0440\u0443\u0433\u0438\u0435 \u0440\u044b\u043d\u043e\u0447\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435. <\/p>\n<p>\u0425\u043e\u0442\u0438\u0442\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 &#8212; \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u0439\u0442\u0435 \u0441\u0430\u043c\u0438 \u0438\u043b\u0438 \u0437\u0430\u043a\u0430\u0436\u0438\u0442\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f. \u0412\u0441\u0451 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e, \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e \u0438 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043f\u043e\u0434 \u0432\u0430\u0448\u0438\u043c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0435\u043c. <\/p>\n<p><strong>\u0410\u0432\u0442\u043e\u0440:<\/strong> \u041c\u0438\u0445\u0430\u0438\u043b \u0428\u0430\u0440\u0434\u0438\u043d<br \/> <a href=\"https:\/\/shardin.name\/?utm_source=habr\" rel=\"noopener noreferrer nofollow\">\ud83d\udd17 \u041c\u043e\u044f \u043e\u043d\u043b\u0430\u0439\u043d-\u0432\u0438\u0437\u0438\u0442\u043a\u0430<\/a><br \/> <a href=\"https:\/\/t.me\/+ros3jcpKDb8xODhi\" rel=\"noopener noreferrer nofollow\">\ud83d\udce2 Telegram \u00ab\u0423\u043c\u043d\u044b\u0439 \u0414\u043e\u043c \u0418\u043d\u0432\u0435\u0441\u0442\u043e\u0440\u0430\u00bb<\/a><\/p>\n<p>15 \u0438\u044e\u043b\u044f 2025 \u0433\u043e\u0434\u0430<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/927238\/\"> https:\/\/habr.com\/ru\/articles\/927238\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-467541","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/467541","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=467541"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/467541\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=467541"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=467541"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=467541"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}