Created
April 3, 2023 14:50
-
-
Save ttldtor/e402c4f6db7419c8e2f6547acab3504e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<svg width="210mm" height="297mm" version="1.1" viewBox="0 0 210 297" xmlns="http://www.w3.org/2000/svg"> | |
<defs> | |
<filter id="a" x="-.026646" y="-.09163" width="1.0533" height="1.1833" color-interpolation-filters="sRGB"> | |
<feTurbulence baseFrequency="0.1" numOctaves="5" result="result1" type="fractalNoise"/> | |
<feGaussianBlur result="result2" stdDeviation="2"/> | |
<feDisplacementMap in="SourceGraphic" in2="result2" scale="50" xChannelSelector="R" yChannelSelector="B"/> | |
</filter> | |
</defs> | |
<text x="15.327163" y="87.33593" fill="#000000" fill-opacity=".99655" filter="url(#a)" font-family="'Cascadia Mono PL'" font-size="4.2333px" stroke-width=".26458" xml:space="preserve"><tspan x="15.327163" y="87.33593"><tspan fill="#512bd4" fill-opacity=".99655">auto</tspan> endpoint = DXEndpoint::newBuilder()</tspan><tspan x="15.327163" y="92.67411"> ->withProperty(<tspan fill="#512bd4">"dxfeed.address"</tspan>, <tspan fill="#512bd4">"demo.dxfeed.com:7300"</tspan>)</tspan><tspan x="15.327163" y="98.012291"> ->build();</tspan><tspan x="15.327163" y="103.35048"><tspan fill="#512bd4">auto</tspan> subscription = endpoint->getFeed()->createSubscription(Quote::type);</tspan><tspan x="15.327163" y="108.68866">subscription->addEventListener([](<tspan fill="#512bd4">auto</tspan>&& events) {</tspan><tspan x="15.327163" y="114.02684"> <tspan fill="#512bd4">for</tspan> (<tspan fill="#512bd4">auto</tspan>&& e : events) {</tspan><tspan x="15.327163" y="119.36502"> std::cout << e << <tspan fill="#512bd4">"\n"</tspan>;</tspan><tspan x="15.327163" y="124.70321"> }</tspan><tspan x="15.327163" y="130.04138">});</tspan><tspan x="15.327163" y="135.37958">subscription->addSymbols({<tspan fill="#512bd4">"AAPL"</tspan>});</tspan></text> | |
</svg> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment