-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenvironment.php
29 lines (25 loc) · 953 Bytes
/
environment.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
<?php
$ENV = 'TEST'; // ou TEST
if ($ENV == 'PROD') {
define('URL', 'https://api1.binance.com');
define('secret', 'XXX');
define('header', [
'Accepts: */*',
'Content-Type: application/json',
'X-MBX-APIKEY: XXX'
]
);
$api = new Binance\API('XXX','XXX');
}
if ($ENV == 'TEST') {
define('URL', 'https://testnet.binance.vision');
define('secret', 'XXX');
define('header', [
'Accepts: */*',
'Content-Type: application/json',
'X-MBX-APIKEY: XXX'
]
);
$api = new Binance\API('XXX','XXX', true);
}
?>