{"id":8048,"date":"2025-09-04T23:22:22","date_gmt":"2025-09-05T04:22:22","guid":{"rendered":"https:\/\/librarytestdev.wpenginepowered.com\/?post_type=doc&#038;p=8048"},"modified":"2025-09-04T23:23:54","modified_gmt":"2025-09-05T04:23:54","slug":"markets-3","status":"publish","type":"doc","link":"https:\/\/library-staging.tradingtechnologies.com\/apis\/tt-net-sdk\/working-with-instruments-tt-net-sdk\/markets-3\/","title":{"rendered":"Markets"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">All markets supported by TT are listed in the&nbsp;<a href=\"\/tt-net-sdk\/api\/tt_net_sdk.MarketId.html\">MarketId<\/a>&nbsp;enumeration.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/library-staging.tradingtechnologies.com\/wp-content\/uploads\/2025\/09\/marketid-enum-intellisense.png\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note<\/strong>: The market name for Autospreader instruments is \u201cASE\u201d and the market name for Aggregator instruments is \u201cAGGREGATOR\u201d.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can also access the full list of markets supported by TT via the&nbsp;<a href=\"\/tt-net-sdk\/api\/tt_net_sdk.MarketCatalog.html\">MarketCatalog<\/a>&nbsp;member variable of the&nbsp;<a href=\"\/tt-net-sdk\/api\/tt_net_sdk.TTAPI.html\">TTAPI<\/a>&nbsp;class. The&nbsp;<a href=\"\/tt-net-sdk\/api\/tt_net_sdk.MarketCatalog.html\">MarketCatalog<\/a>&nbsp;class has a member variable named&nbsp;<em>Markets<\/em>&nbsp;which is a&nbsp;<strong>Dictionary<\/strong>&nbsp;of&nbsp;<a href=\"\/tt-net-sdk\/api\/tt_net_sdk.Market.html\">Market<\/a>&nbsp;instances.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/library-staging.tradingtechnologies.com\/wp-content\/uploads\/2025\/09\/marketcatalog-enum-intellisense.png\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The&nbsp;<a href=\"\/tt-net-sdk\/api\/tt_net_sdk.Market.html\">Market<\/a>&nbsp;class provides several public members, including:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ market name\npublic string Name;\n\/\/ market id\npublic MarketId Key;\n\/\/ whether trading is enabled for your user on this market\npublic bool IsTradingEnabled;\n\/\/ supported product types for this market\npublic IEnumerable&lt;ProductType&gt; SupportedProductTypes;\n\/\/ valid accounts for this market\npublic IReadOnlyCollection&lt;Account&gt; Accounts;\n\/\/ utility function to get MarketId from a string name\npublic static MarketId GetMarketIdFromName(string marketName)\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The&nbsp;<a href=\"\/tt-net-sdk\/api\/tt_net_sdk.MarketCatalog.html\">MarketCatalog<\/a>&nbsp;also provides the ability to register for changes to the&nbsp;<em>IsTradingEnabled<\/em>&nbsp;flag. The following code snippet demonstrates how to register for these event notifications.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>m_api.MarketCatalog.TradingEnabledChanged += MarketCatalog_TradingEnabledChanged;\n\nprivate void MarketCatalog_TradingEnabledChanged(object sender,  MarketStatusEventArgs e)\n{\n\tConsole.WriteLine(\"Market: {0}, IsTradingEnabled: {1}\", e.Market, e.IsTradingEnabled);\n}\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">All product types supported by TT are listed in the&nbsp;<a href=\"\/tt-net-sdk\/api\/tt_net_sdk.ProductType.html\">ProductType<\/a>&nbsp;enumeration.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/library-staging.tradingtechnologies.com\/wp-content\/uploads\/2025\/09\/producttype-enum-intellisense.png\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note<\/strong>: The product type for Autospreader and Aggregator instruments is \u201cSynthetic\u201d.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The&nbsp;<a href=\"\/tt-net-sdk\/api\/tt_net_sdk.Product.html\">Product<\/a>&nbsp;class offers a static function that allows you to convert from a string to enumerated value.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>public class Product\n{\n\t\/\/ \u2026\n\tpublic static ProductType GetProductTypeFromName(string productTypeName)\n\t\/\/ ...\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p class=\"wp-block-paragraph\">All markets supported by TT are listed in the&nbsp;<a href=\"\/tt-net-sdk\/api\/tt_net_sdk.MarketId.html\">MarketId<\/a>&nbsp;enumeration.<\/p>\n<p class=\"wp-block-paragraph\"><strong>Note<\/strong>: The market name for Autospreader instruments is \u201cASE\u201d and the market name for Aggregator instruments is \u201cAGGREGATOR\u201d.<\/p>\n<p class=\"wp-block-paragraph\">You can also access the full list of markets supported by TT via the&nbsp;<a href=\"\/tt-net-sdk\/api\/tt_net_sdk.MarketCatalog.html\">MarketCatalog<\/a>&nbsp;member variable of the&nbsp;<a href=\"\/tt-net-sdk\/api\/tt_net_sdk.TTAPI.html\">TTAPI<\/a>&nbsp;class. The&nbsp;<a href=\"\/tt-net-sdk\/api\/tt_net_sdk.MarketCatalog.html\">MarketCatalog<\/a>&nbsp;class has a member variable named&nbsp;<em>Markets<\/em>&nbsp;which is a&nbsp;<strong>Dictionary<\/strong>&nbsp;of&nbsp;<a href=\"\/tt-net-sdk\/api\/tt_net_sdk.Market.html\">Market<\/a>&nbsp;instances.<\/p>\n<p class=\"wp-block-paragraph\">The&nbsp;<a href=\"\/tt-net-sdk\/api\/tt_net_sdk.Market.html\">Market<\/a>&nbsp;class provides several public members, including:<\/p>\n<p class=\"wp-block-paragraph\">The&nbsp;<a href=\"\/tt-net-sdk\/api\/tt_net_sdk.MarketCatalog.html\">MarketCatalog<\/a>&nbsp;also provides the ability to register for changes to the&nbsp;<em>IsTradingEnabled<\/em>&nbsp;flag. The following code snippet demonstrates how to register for these event notifications.<\/p>\n<p class=\"wp-block-paragraph\">All product types supported by TT are listed in the&nbsp;<a href=\"\/tt-net-sdk\/api\/tt_net_sdk.ProductType.html\">ProductType<\/a>&nbsp;enumeration.<\/p>\n<p class=\"wp-block-paragraph\"><strong>Note<\/strong>: The product type for Autospreader and Aggregator instruments is \u201cSynthetic\u201d.<\/p>\n<p class=\"wp-block-paragraph\">The&nbsp;<a href=\"\/tt-net-sdk\/api\/tt_net_sdk.Product.html\">Product<\/a>&nbsp;class offers a static function that allows you to convert from a string to enumerated value.<\/p>\n","protected":false},"author":2,"template":"wp-custom-template-single-doc-tt-net-sdk","meta":{"_acf_changed":true,"footnotes":""},"docs-category":[772],"class_list":["post-8048","doc","type-doc","status-publish","hentry","docs-category-working-with-instruments-tt-net-sdk"],"acf":[],"_links":{"self":[{"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/doc\/8048","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/doc"}],"about":[{"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/types\/doc"}],"author":[{"embeddable":true,"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/users\/2"}],"version-history":[{"count":0,"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/doc\/8048\/revisions"}],"wp:attachment":[{"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/media?parent=8048"}],"wp:term":[{"taxonomy":"docs-category","embeddable":true,"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/docs-category?post=8048"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}