forked from ccxt/ccxt
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbinanceus.php
57 lines (52 loc) · 2.21 KB
/
binanceus.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
<?php
namespace ccxt;
// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
use Exception; // a common import
use ccxt\abstract\binanceus as binance;
class binanceus extends binance {
public function describe() {
return $this->deep_extend(parent::describe(), array(
'id' => 'binanceus',
'name' => 'Binance US',
'countries' => array( 'US' ), // US
'certified' => false,
'pro' => true,
'urls' => array(
'logo' => 'https://user-images.githubusercontent.com/1294454/65177307-217b7c80-da5f-11e9-876e-0b748ba0a358.jpg',
'api' => array(
'web' => 'https://www.binance.us',
'sapi' => 'https://api.binance.us/sapi/v1',
'wapi' => 'https://api.binance.us/wapi/v3',
'public' => 'https://api.binance.us/api/v3',
'private' => 'https://api.binance.us/api/v3',
),
'www' => 'https://www.binance.us',
'referral' => 'https://www.binance.us/?ref=35005074',
'doc' => 'https://github.com/binance-us/binance-official-api-docs',
'fees' => 'https://www.binance.us/en/fee/schedule',
),
'fees' => array(
'trading' => array(
'tierBased' => true,
'percentage' => true,
'taker' => $this->parse_number('0.001'), // 0.1% trading fee, zero fees for all trading pairs before November 1.
'maker' => $this->parse_number('0.001'), // 0.1% trading fee, zero fees for all trading pairs before November 1.
),
),
'options' => array(
'fetchMarkets' => array( 'spot' ),
'defaultType' => 'spot',
'quoteOrderQty' => false,
),
'has' => array(
'CORS' => null,
'spot' => true,
'margin' => null,
'swap' => null,
'future' => null,
'option' => null,
),
));
}
}