forked from woulgar/tradesman
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkey_secret.m
41 lines (39 loc) · 1.5 KB
/
key_secret.m
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
function [key,secret,username]=key_secret(server)
% please type your key and secrets for each server or server you will use.
% % % % % % % % % % % % BTC-E
BTCE_KEY = '';
BTCE_SECRET = '';
BTCE_USERNAME=''; %this is empty no need for username
% % % % % % % % % % % % CEX.IO
CEXIO_KEY = '';
CEXIO_SECRET = '';
CEXIO_USERNAME=''; %this is needed in header
% % % % % % % % % % % % BITSTAMP no need atm. will be updated
BITSTAMP_KEY = '';
BITSTAMP_SECRET = '';
BITSTAMP_USERNAME=''; %this is empty no need for username
% % % % % % % % % % % % BITFINEX
BITFINEX_KEY = '';
BITFINEX_SECRET = '';
BITFINEX_USERNAME=''; %this is empty no need for username
% % % % % % % % % % % % HUOBI no need atm. will be updated
HUOBI_KEY = '';
HUOBI_SECRET = '';
HUOBI_USERNAME=''; %this is empty no need for username
% % % % % % % % % % % % GDAX no need atm. will be updated
GDAX_KEY = '';
GDAX_SECRET = '';
GDAX_USERNAME=''; %this is passphrase
% % % % % % % % % % % % BITTREX
BITTREX_KEY = '';
BITTREX_SECRET = '';
BITTREX_USERNAME='';
keys={BTCE_KEY,CEXIO_KEY,BITSTAMP_KEY,BITFINEX_KEY,HUOBI_KEY,GDAX_KEY,BITTREX_KEY};
secrets={BTCE_SECRET,CEXIO_SECRET,BITSTAMP_SECRET,BITFINEX_SECRET,HUOBI_SECRET,GDAX_SECRET,BITTREX_SECRET};
usernames={BTCE_USERNAME,CEXIO_USERNAME,BITSTAMP_USERNAME,BITFINEX_USERNAME,HUOBI_USERNAME,GDAX_USERNAME,BITTREX_USERNAME};
server_names={'btce','cexio','bitstamp','bitfinex','huobi','gdax'};
server_loc=find(strcmp(server,server_names),1);
key=keys{server_loc};
secret=secrets{server_loc};
username=usernames{server_loc};
end