{"id":8057,"date":"2025-09-04T23:22:21","date_gmt":"2025-09-05T04:22:21","guid":{"rendered":"https:\/\/librarytestdev.wpenginepowered.com\/?post_type=doc&#038;p=8057"},"modified":"2025-09-04T23:23:53","modified_gmt":"2025-09-05T04:23:53","slug":"the-instrument-class-2","status":"publish","type":"doc","link":"https:\/\/library-test.tradingtechnologies.com\/apis\/tt-net-sdk\/working-with-instruments-tt-net-sdk\/the-instrument-class-2\/","title":{"rendered":"The Instrument class"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">The&nbsp;<a href=\"\/tt-net-sdk\/api\/tt_net_sdk.Instrument.html\">Instrument<\/a>&nbsp;class provides the data as it relates to a given tradable entity. Its members include:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ All of the detailed properties of an instrument\npublic InstrumentDetails InstrumentDetails;\n\/\/ InstrumentKey struct\npublic tt_net_sdk.InstrumentKey Key;\n\/\/ instrument\u2019s name\npublic string Name;\n\/\/ product information\npublic Product Product;\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The&nbsp;<a href=\"\/tt-net-sdk\/api\/tt_net_sdk.InstrumentDetails.html\">InstrumentDetails<\/a>&nbsp;class provides all of the detailed properties of an instrument. Some of its members include:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>public decimal PointValue;\npublic DateTime MaturityDate;\npublic int MarketDepth;\npublic int ImpliedDepth;\npublic decimal DisplayFactor;\npublic int Precision;\npublic UInt64 Id;\npublic string Alias;\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The&nbsp;<a href=\"\/tt-net-sdk\/api\/tt_net_sdk.InstrumentKey.html\">InstrumentKey<\/a>&nbsp;struct is a simple collection of the instrument\u2019s descriptive information. Its constructors and members include:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ Constructors\npublic InstrumentKey(ProductKey productKey, string alias);\npublic InstrumentKey(MarketId marketId, ProductType productType, string productName, string alias);\npublic InstrumentKey(UInt64 instrumentId);\n\n\/\/ TT\u2019s identifier for this instrument\npublic InstrumentId InstrumentId;\n\/\/ market id\npublic MarketId MarketId;\n\/\/ ProductKey struct\npublic ProductKey   ProductKey;\n\/\/ instrument\u2019s alias\npublic string Alias;\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Note that the&nbsp;<code>InstrumentId<\/code>&nbsp;is only populated if the instance is constructed as a result of a product fetch via the&nbsp;<a href=\"\/tt-net-sdk\/api\/tt_net_sdk.InstrumentCatalog.html\">InstrumentCatalog<\/a>&nbsp;or&nbsp;<a href=\"\/tt-net-sdk\/api\/tt_net_sdk.InstrumentLookup.html\">InstrumentLookup<\/a>&nbsp;class.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The&nbsp;Instrument&nbsp;class provides the data as it relates to a given tradable entity. Its members include [&hellip;]<\/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-8057","doc","type-doc","status-publish","hentry","docs-category-working-with-instruments-tt-net-sdk"],"acf":[],"_links":{"self":[{"href":"https:\/\/library-test.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/doc\/8057","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/library-test.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/doc"}],"about":[{"href":"https:\/\/library-test.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/types\/doc"}],"author":[{"embeddable":true,"href":"https:\/\/library-test.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/users\/2"}],"version-history":[{"count":0,"href":"https:\/\/library-test.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/doc\/8057\/revisions"}],"wp:attachment":[{"href":"https:\/\/library-test.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/media?parent=8057"}],"wp:term":[{"taxonomy":"docs-category","embeddable":true,"href":"https:\/\/library-test.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/docs-category?post=8057"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}