michaelcdillon / bitcoin-arbitrage Goto Github PK
View Code? Open in Web Editor NEWBitCoin arbitrage opportunity exploitation project.
BitCoin arbitrage opportunity exploitation project.
BitCoin Arbitrage ------------------------------------------------------------------------ Project for finding BC arbitrage oppurtunities and then expoilting them. ------------------------------------------------------------------------ Instructions: 1. Edit confing/bca.config and place the exchange websites you want to use in the proper formatting. 2. execute 'ant build-run'
When the config file is loaded the exchange objects are setup and then put into an arraylist. The arraylist is passed to the arbitrage class to begin operation, except the arraylist is comprised of the correct number of exchanges but only the data from the last exchange in the config file is present for all the exchanges.
Alex can you take a look second look at this for me and see where my stupidity is?
The issue is in config/Configuration.java :
public ArrayList<Exchange> getExchanges () {
ArrayList<Exchange> exchanges = new ArrayList<Exchange> ();
List exchanges_xml = config.configurationsAt (EXCHANGE_KEY);
Exchange exchange = null;
HierarchicalConfiguration exchange_xml = null;
String name = null;
String ticker_url = null;
for (Iterator it = exchanges_xml.iterator (); it.hasNext ();) {
exchange_xml = (HierarchicalConfiguration) it.next();
name = exchange_xml.getString (NAME_KEY);
ticker_url = exchange_xml.getString (TICKER_KEY);
exchange = new Exchange (name, ticker_url);
exchanges.add (exchange);
}
log.info (exchanges.toString ());
return exchanges;
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.