optmarket-bittrex is framework that was mainly designed for communicating with Bittrex API (public and private) in c++. Some templates are available for transforming the adquired data into vectors, providing an insight for the use of other efficient data types. Following its structures, different trading platforms could be accesed and cross-tradding would be smartly performed. We believe that optimization, metaheuristics and other intelligent inspired systems can be easily embedded inside it. For advancing into these directions, please check the OptFrame.
This version implement V1.1 Bittrex API and the new HMAC authentification.
optmarket-bittrex is framework mainly designed for communicating with Bittrex API (public and private) in c++. Some templates are available for transforming the adquired data into vectors, providing an insight for the use of other efficient data types. We believe that optimization, metaheuristics and other intelligent inspired systems can be easily embedded inside it. For advancing into these directions, please check the OptFrame.
#Dependencies libssl-dev libcurl libjsoncpp-dev
#Execution export PRIVATE_KEY="1234" && export PUB_KEY="1234" && app_OptMarket
git clone "github.com/vncoelho/optmarket-bittrex.git"
string apikey = "YOUR_API_KEY";
string apisecret = "YOUR_API_SECRET";
int main(void)
{
// Bittrex main class
BittrexAPI bittrex;
// Optimization market functions with templates for automatic and expert training
OptMarket optMarket;
//Other -- Precise printing messages
cout << std::setprecision(10);
cout << std::fixed;
//Few examples
float quantity = 0.3000;
float rate = 0.00313001;
optMarket.optSellCalculatingProfit(bittrex,quantity,rate,"BTC-ANS");
bittrex.setGetOrdersBook("BTC-ANS", 1);
bittrex.setGetMarketSummary("BTC-ANS");
bittrex.setGetBalance("ANS");
bittrex.setCancelOrder("uuid");
bittrex.setSellLimit("BTC-ANS", quantity, rate);
bittrex.setBuyLimit("BTC-ETH", quantity, rate); //Min 50K * 10^-8
bittrex.setGetBalance("ANS");
bittrex.setVerifyMyOpenOrders("BTC-ANS");
cout << "Finished with success!" << endl;
return 0;
}
17GrXw3qdz1G6DRxvtmhnhLzFXjRK5z6NY
AZZZsZJVqZwfHUx55p6UdY1Vx7qCjhnjMy
0xd35fb76723636e11Fa580665A54E19F781C6Cd8a
## Main contributors
v1.2
Vitor Nazário Coelho
Igor Machado Coelho