{"id":7012,"date":"2025-08-28T22:11:56","date_gmt":"2025-08-29T03:11:56","guid":{"rendered":"https:\/\/librarytestdev.wpenginepowered.com\/?post_type=doc&#038;p=7012"},"modified":"2026-06-29T11:00:31","modified_gmt":"2026-06-29T16:00:31","slug":"the-instrument-class","status":"publish","type":"doc","link":"https:\/\/library-staging.tradingtechnologies.com\/apis\/tt-core-sdk\/working-with-instruments\/the-instrument-class\/","title":{"rendered":"The Instrument Class"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">The Instrument class provides the data as it relates to a given tradable security. Its members include methods such as:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>    \nvirtual double  GetTickValue() const noexcept = 0;\nvirtual double  GetTickSize() const noexcept = 0;\nvirtual int64_t GetTickNum() const noexcept = 0;\nvirtual int64_t GetTickDenom() const noexcept = 0;\nvirtual double GetPointValue() const noexcept = 0;\nvirtual double GetDisplayFactor() const noexcept = 0;\n\nvirtual uint64_t GetStartingDate() const noexcept = 0;\nvirtual uint64_t GetLastTradingDate() const noexcept = 0;\nvirtual uint64_t GetFirstDeliveryDate() const noexcept = 0;\nvirtual uint64_t GetMaturityDate() const noexcept = 0;\n <\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">It also provides methods for performing arithmetic operations on prices, including:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\n                      \n\/\/ returns the tradable price a number of ticks from the specified price\nvirtual double OffsetPrice (double price, int32_t offset, Rounding round) const noexcept = 0;\n\n\/\/ returns the tradable price a number of ticks above the specified price\nvirtual double TickPriceUp (double price, int32_t offset) const noexcept = 0;\n\n\/\/ returns the tradable price a number of ticks below the specified price\nvirtual double TickPriceDown (double price, int32_t offset) const noexcept = 0;\n\n\/\/ returns the specified price rounded to a tradable tick\nvirtual double RoundPriceToTick (double price, Rounding round) const noexcept = 0;\n\n\/\/ returns if the specified price is on a tradable tick\nvirtual bool IsPriceOnTick (const double price) const noexcept = 0;\n\n\/\/ returns the specified price in tradable ticks\nvirtual int32_t PriceToTicks (const double price) const noexcept = 0;\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p class=\"wp-block-paragraph\">The Instrument class provides the data as it relates to a given tradable security. Its members include methods such as:<\/p>\n<p class=\"wp-block-paragraph\">It also provides methods for performing arithmetic operations on prices, including:<\/p>\n","protected":false},"author":2,"template":"wp-custom-template-single-doc-tt-core-sdk","meta":{"_acf_changed":false,"footnotes":""},"docs-category":[446],"class_list":["post-7012","doc","type-doc","status-publish","hentry","docs-category-working-with-instruments"],"acf":[],"_links":{"self":[{"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/doc\/7012","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":1,"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/doc\/7012\/revisions"}],"predecessor-version":[{"id":59645,"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/doc\/7012\/revisions\/59645"}],"wp:attachment":[{"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/media?parent=7012"}],"wp:term":[{"taxonomy":"docs-category","embeddable":true,"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/docs-category?post=7012"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}