forked from AdamCox9/nickelbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php
95 lines (71 loc) · 3.91 KB
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?PHP
//_____Maybe we can organize these dependencies better.
//_____Crypto tools, etc...
require_once( "adapters/crypto_base.php" );
require_once( "adapters/crypto_interface.php" );
require_once( "adapters/crypto_tester.php" );
require_once( "adapters/crypto_utilities.php" );
//_____Bots:
require_once( "bots/build_cache.php" );
require_once( "bots/human_readable_summary.php" );
require_once( "bots/disperse_funds.php" );
require_once( "bots/make_deposit_addresses.php" );
require_once( "bots/make_max_orders.php" );
require_once( "bots/make_min_orders.php" );
require_once( "bots/run_tests.php" );
require_once( "bots/poloniex_light_show.php" );
//_____Wrapper libraries for native API's:
require_once( "adapters/bitfinex/bitfinex_lib.php" );
require_once( "adapters/bitstamp/bitstamp_lib.php" );
require_once( "adapters/bittrex/bittrex_lib.php" );
require_once( "adapters/btc-e/btc-e_lib.php" );
require_once( "adapters/bter/bter_lib.php" );
require_once( "adapters/coinbase/coinbase_lib.php" );
require_once( "adapters/kraken/kraken_lib.php" );
require_once( "adapters/poloniex/poloniex_lib.php" );
//_____Facades for wrapper libraries:
require_once( "adapters/bitfinex/bitfinex_adapter.php" );
require_once( "adapters/bitstamp/bitstamp_adapter.php" );
require_once( "adapters/bittrex/bittrex_adapter.php" );
require_once( "adapters/btc-e/btc-e_adapter.php" );
require_once( "adapters/bter/bter_adapter.php" );
require_once( "adapters/coinbase/coinbase_adapter.php" );
require_once( "adapters/kraken/kraken_adapter.php" );
require_once( "adapters/poloniex/poloniex_adapter.php" );
//_____Globals are the best
$bitfinex_api_key = "INSERT_API_KEY_HERE";
$bitfinex_api_secret = "INSERT_API_SECRET_HERE";
$bitstamp_api_key = "INSERT_API_KEY_HERE";
$bitstamp_api_secret = "INSERT_API_SECRET_HERE";
$bitstamp_api_number = "INSERT_API_NUMBER_HERE";
$bittrex_api_key = "INSERT_API_KEY_HERE";
$bittrex_api_secret = "INSERT_API_SECRET_HERE";
$btce_api_key = "INSERT_API_KEY_HERE";
$btce_api_secret = "INSERT_API_SECRET_HERE";
$bter_api_key = "INSERT_API_KEY_HERE";
$bter_api_secret = "INSERT_API_SECRET_HERE";
$coinbase_api_key = "INSERT_API_KEY_HERE";
$coinbase_api_secret = "INSERT_API_SECRET_HERE";
$coinbase_api_passphrase = 'INSERT_API_PASSPHRASE_HERE';
$poloniex_api_key = "INSERT_API_KEY_HERE";
$poloniex_api_secret = "INSERT_API_SECRET_HERE";
//_____Just leave my addresses now since BTC-e don't have this functionality...
//_____Note that Bter & Coinbase don't have this functionality either...
$BTCE_BTC_DEPOSIT_ADDRESS = "1jPtEamiPHn2NaPXab29ruSAparsvrUre";
$BTCE_LTC_DEPOSIT_ADDRESS = "LZrNNQtK4yDzwEjj2VszEm529UaDDDsdPH";
$BTCE_NMC_DEPOSIT_ADDRESS = "NEtAMTUgqyD4w7DEA414PRSFjhoVJstP7W";
$BTCE_NVC_DEPOSIT_ADDRESS = "4KwnoXR5nKxPebxryruugbuqP7SdiuWxP3";
$BTCE_PPC_DEPOSIT_ADDRESS = "PVduuiWTCm3jPaPr9JTPyBhAVrhZuEER5D";
//_____Make a structure or use some design pattern?
$Adapters = array();
$Adapters['Kraken'] = new KrakenAdapter( new Kraken( $kraken_api_key, $kraken_api_secret ) );
$Adapters['Bitfinex'] = new BitfinexAdapter( new Bitfinex( $bitfinex_api_key, $bitfinex_api_secret ) );
$Adapters['Bitstamp'] = new BitstampAdapter( new Bitstamp( $bitstamp_api_key, $bitstamp_api_secret, $bitstamp_api_number ) );
$Adapters['Bittrex'] = new BittrexAdapter( new Bittrex( $bittrex_api_key, $bittrex_api_secret ) );
$Adapters['Btce'] = new BtceAdapter( new Btce( $btce_api_key, $btce_api_secret ) );
$Adapters['Bter'] = new BterAdapter( new Bter( $bter_api_key, $bter_api_secret ) );
$Adapters['Coinbase'] = new CoinbaseAdapter( new Coinbase( $coinbase_api_key, $coinbase_api_secret, $coinbase_api_passphrase ) );
$Adapters['Poloniex'] = new PoloniexAdapter( new Poloniex( $poloniex_api_key, $poloniex_api_secret ) );
//_____This simple class should suffice for testing.
$Tester = new Tester();
?>