package com.popebp.bitcoin.exchange.btce;

public class BTCe {
	public static final String API_URL = "https://btc-e.com/tapi";
	private String apiKey = null;
	private String apiSecret = null;
	
	/*
	 * Needs
	 *  o Method that builds the QueryParams and signs
	 *  o Method that builds the Headers
	 *  o Method that takes in api path, query params, headers and makes request (returns JSONObject)
	 *  o ResultFactory that builds each result type
	 */
	
	
	public BTCe(String key, String secret) {
		this.apiKey = key;
		this.apiSecret = secret;
	}
	
	public Result getInfo() {
		return new GetInfoResult();
	}
	
	public Result getTransactionHistory(Parameters params) {
		return new TransactionHistoryResult();
	}
	
	public Result getTradeHistory(Parameters params) {
		return new TradeHistoryResult();
	}
	
	public Result getActiveOrders(Parameters params) {
		return new ActiveOrdersResult();
	}
	
	public Result doTrade(Parameters params) {
		return new TradeResult();
	}
	
	public Result doCancelOrder(Parameters params) {
		return new CancelOrderResult();
	}
}

@@ -36,16 +36,45 @@
 .btce;%0A%0A
+import org.json.JSONObject;%0A%0A
 public c
@@ -476,18 +476,16 @@
 %0A%09 */%0A%09%0A
-%09%0A
 %09public 
@@ -567,24 +567,142 @@
 ecret;%0A%09%7D%0A%09%0A
+%09private JSONObject doRequest() %7B%0A%09%09// TODO: This will make the request, based on the endpoint%0A%09%09%0A%09%09return null;%0A%09%7D%0A%09%0A
 %09public Resu

Add in doRequest for the TradeApi