Giter Club home page Giter Club logo

optmarket-bittrex's Introduction

optmarket-bittrex

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

Import

git clone "github.com/vncoelho/optmarket-bittrex.git"

Usage

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;
}

Donate

BTC

Donation QR

17GrXw3qdz1G6DRxvtmhnhLzFXjRK5z6NY

NEO

AZZZsZJVqZwfHUx55p6UdY1Vx7qCjhnjMy

ETH

0xd35fb76723636e11Fa580665A54E19F781C6Cd8a


## Main contributors
v1.2
Vitor Nazário Coelho
Igor Machado Coelho

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.