{"id":94,"date":"2018-03-15T14:40:06","date_gmt":"2018-03-15T14:40:06","guid":{"rendered":"http:\/\/www.nedlowe.co.uk\/blog\/?p=94"},"modified":"2018-03-15T14:40:06","modified_gmt":"2018-03-15T14:40:06","slug":"openfigi-currencies-and-spot-fx-pairs","status":"publish","type":"post","link":"https:\/\/www.nedlowe.co.uk\/blog\/?p=94","title":{"rendered":"OpenFIGI: Currencies and Spot FX Pairs"},"content":{"rendered":"<p>Anyone who knows me knows that I have an unhealthy interest in open symbologies.\u00a0 Until we have a common reference for identifying things, it is difficult to build higher-order open connectivity (such as reusable APIs).<\/p>\n<p>In the financial instrument space, the best symbology I am aware of is\u00a0<a href=\"http:\/\/openfigi.com\" target=\"_blank\" rel=\"noopener\">OpenFIGI<\/a>.\u00a0 Whilst it is maintained by Bloomberg, it is open and free to use.<\/p>\n<p>I recently had a question and want to share the answer in case anyone else has the same query.\u00a0 Incidentally, OpenFIGI support were super speedy and helpful when answering &#8211; kudos!<\/p>\n<p>My question was regarding representing base currencies &#8211; USD or SGD.\u00a0 If one searches on OpenFIGI for the Currency SGD, one gets the following:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.nedlowe.co.uk\/blog\/wp-content\/uploads\/2018\/03\/sgd.png?ssl=1\"><img data-attachment-id=\"95\" data-permalink=\"https:\/\/www.nedlowe.co.uk\/blog\/?attachment_id=95\" data-orig-file=\"https:\/\/i0.wp.com\/www.nedlowe.co.uk\/blog\/wp-content\/uploads\/2018\/03\/sgd.png?fit=2106%2C1438&amp;ssl=1\" data-orig-size=\"2106,1438\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"sgd\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.nedlowe.co.uk\/blog\/wp-content\/uploads\/2018\/03\/sgd.png?fit=300%2C205&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.nedlowe.co.uk\/blog\/wp-content\/uploads\/2018\/03\/sgd.png?fit=1024%2C699&amp;ssl=1\" decoding=\"async\" loading=\"lazy\" class=\"alignnone size-large wp-image-95\" src=\"https:\/\/i0.wp.com\/www.nedlowe.co.uk\/blog\/wp-content\/uploads\/2018\/03\/sgd.png?resize=840%2C573&#038;ssl=1\" alt=\"\" width=\"840\" height=\"573\" srcset=\"https:\/\/i0.wp.com\/www.nedlowe.co.uk\/blog\/wp-content\/uploads\/2018\/03\/sgd.png?resize=1024%2C699&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.nedlowe.co.uk\/blog\/wp-content\/uploads\/2018\/03\/sgd.png?resize=300%2C205&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.nedlowe.co.uk\/blog\/wp-content\/uploads\/2018\/03\/sgd.png?resize=768%2C524&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.nedlowe.co.uk\/blog\/wp-content\/uploads\/2018\/03\/sgd.png?resize=1200%2C819&amp;ssl=1 1200w, https:\/\/i0.wp.com\/www.nedlowe.co.uk\/blog\/wp-content\/uploads\/2018\/03\/sgd.png?w=2000&amp;ssl=1 2000w\" sizes=\"(max-width: 840px) 100vw, 840px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>From this result alone, it is unclear whether this represents a pure &#8216;SGD&#8217; currency, or (as the name suggests) a USD\/SGD spot FX pair.<\/p>\n<p>The response from support was:<\/p>\n<blockquote><p>The FIGI BBG0013HFJF2 does represent the USDSGD Spot Exchange Rate &#8211; Price of 1 USD in SGD. All currency FIGI represent pairs. A FIGI is not assigned to a single representation of a currency alone. No FIGI exists for just USD or CAD or SGD, only in pairs of currency.<\/p><\/blockquote>\n<p>This clears up the confusion quite nicely.\u00a0 Personally I would have chosen the ticker &#8216;USDSGD&#8217; to represent the pair, but so be it.<\/p>\n<p>Open symbology for the win!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Anyone who knows me knows that I have an unhealthy interest in open symbologies.\u00a0 Until we have a common reference for identifying things, it is difficult to build higher-order open connectivity (such as reusable APIs). In the financial instrument space, the best symbology I am aware of is\u00a0OpenFIGI.\u00a0 Whilst it is maintained by Bloomberg, it [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[1],"tags":[14,10,15,13,17,16],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7QqxF-1w","jetpack-related-posts":[{"id":71,"url":"https:\/\/www.nedlowe.co.uk\/blog\/?p=71","url_meta":{"origin":94,"position":0},"title":"Class Libraries With Microservices","date":"August 30, 2016","format":false,"excerpt":"Back in the olden days, everyone went nuts for Service Oriented Architecture. \u00a0Many consultant dollars were made. \u00a0Everyone temporarily forgot who Fred Brooks was\u00a0(No Silver Bullet). Time moved on, the hype died down. \u00a0But just like a\u00a0Jeffrey\u00a0- IT COMES BACK. \u00a0Yes, I'm talking about micro-services. Martin Fowler has a really\u2026","rel":"","context":"In \"architecture\"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":31,"url":"https:\/\/www.nedlowe.co.uk\/blog\/?p=31","url_meta":{"origin":94,"position":1},"title":"SiteMesh with Spring MVC","date":"January 2, 2014","format":false,"excerpt":"(Recovered from my old Blog). SiteMesh is an open source framework that implements the Decorator pattern. It essentially takes the output stream from a web application, and adds elements to (\u2019decorates\u2019) it. Why would we want that? Put simply, it is an incredibly clean way of adding headers\/footers\/anything, with the\u2026","rel":"","context":"Similar post","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":19,"url":"https:\/\/www.nedlowe.co.uk\/blog\/?p=19","url_meta":{"origin":94,"position":2},"title":"Create an enum dynamically","date":"January 2, 2014","format":false,"excerpt":"(Recovered from my old Blog). When creating an enum dynamically, there are two levels of difficulty. The first case is where the type of the enum is known at compile-time, but the value is not. In this case, we can use the valueOf method of the enum in question: MyEnum.valueOf(stringVar);\u2026","rel":"","context":"Similar post","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":16,"url":"https:\/\/www.nedlowe.co.uk\/blog\/?p=16","url_meta":{"origin":94,"position":3},"title":"Sharing Resources between Maven modules","date":"January 2, 2014","format":false,"excerpt":"(Recovered from my old Blog). I needed to share resources between modules in a multi-module Maven project. The resources in question are configuration data files which are converted into objects via XStream (plus some Spring Bean configuration files). The reason they need to be shared is for instantiation within module-specific\u2026","rel":"","context":"Similar post","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.nedlowe.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/94"}],"collection":[{"href":"https:\/\/www.nedlowe.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nedlowe.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nedlowe.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nedlowe.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=94"}],"version-history":[{"count":1,"href":"https:\/\/www.nedlowe.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/94\/revisions"}],"predecessor-version":[{"id":96,"href":"https:\/\/www.nedlowe.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/94\/revisions\/96"}],"wp:attachment":[{"href":"https:\/\/www.nedlowe.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=94"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nedlowe.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=94"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nedlowe.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=94"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}