Coder Social home page Coder Social logo

benjnse / cpp-api-streaming Goto Github PK

View Code? Open in Web Editor NEW

This project forked from oanda/cpp-api-streaming

0.0 1.0 0.0 206 KB

A demo app in C++ for streaming rates using OANDA open api and the POCO networking library

License: MIT License

Makefile 10.69% C++ 89.31%

cpp-api-streaming's Introduction

cpp-api-streaming

A demo app in C++ for streaming rates using OANDA REST api and the POCO C++ library. A JSON parser such as libjson can be used decode the JSON response.

Setup

Clone this repo to the location of your choice

Update the following information in main() in streaming.cpp:

accountId
access_token (Authorization)

Compile the file through g++ compiler. Link the poco networking component using the following -l flags.

g++ streaming.cpp -lPocoNet -lPocoFoundation -lPocoNetSSL -o streaming

Alternatively, use the provided Makefile by running make.

Run the output executable file

./streaming

Sameple Output

{"tick":{"instrument":"EUR_USD","time":"2014-03-07T20:52:17.453618Z","bid":1.3867,"ask":1.38682}}
{"heartbeat":{"time":"2014-03-07T20:52:29.452784Z"}}
{"tick":{"instrument":"EUR_USD","time":"2014-03-07T20:52:31.430114Z","bid":1.38671,"ask":1.38685}}
{"tick":{"instrument":"EUR_USD","time":"2014-03-07T20:52:31.478110Z","bid":1.38673,"ask":1.38687}}

More Information

http://developer.oanda.com/

cpp-api-streaming's People

Contributors

creich avatar jmunnings avatar raycui avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.