Skip to content

alisharpasand/ctraderOpenAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ctraderOpenAPI

Ctrader Open API C++ client template

Ctrader Open API 2.0 is an API created by Spotware for algorithmic trading and it can be used in any broker supporting Ctrader. Visit https://www.spotware.com/ctrader/trading/ctrader-open-api-trading.

This is a C++ Open API 2.0 client template for those dont want to use C# or Java examples. It was compiled in Debian 9 with g++ compiler. It should work fine in any Linux system.

Define your credentials in src/credentials.h

Build protobuf compiler

This example will not compile if you dont have protobuf compiler and the headers in your system. So follow the instructions here: https://github.com/protocolbuffers/protobuf/blob/master/src/README.md

The Makefile inside src folder set libraries and headers to /usr/local folder. If you have installed protobuf in another folder, change src/Makefile:

Define protobuf header folder: OPT += -I /usr/local/include/google/protobuf

Define protobuf libraries folder: LIBS += -L /usr/local/lib

About

Ctrader Open API C++ client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •