forked from ccxt/ccxt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
binancecoinm.php
49 lines (42 loc) · 1.67 KB
/
binancecoinm.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
<?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
class binancecoinm extends binance {
public function describe() {
return $this->deep_extend(parent::describe(), array(
'id' => 'binancecoinm',
'name' => 'Binance COIN-M',
'urls' => array(
'logo' => 'https://user-images.githubusercontent.com/1294454/117738721-668c8d80-b205-11eb-8c49-3fad84c4a07f.jpg',
'doc' => array(
'https://binance-docs.github.io/apidocs/delivery/en/',
'https://binance-docs.github.io/apidocs/spot/en',
),
),
'has' => array(
'CORS' => null,
'spot' => false,
'margin' => false,
'swap' => true,
'future' => true,
'option' => null,
'createStopMarketOrder' => true,
),
'options' => array(
'fetchMarkets' => array( 'inverse' ),
'defaultSubType' => 'inverse',
'leverageBrackets' => null,
),
));
}
public function transfer_in($code, $amount, $params = array ()) {
// transfer from spot wallet to coinm futures wallet
return $this->futuresTransfer ($code, $amount, 3, $params);
}
public function transfer_out($code, $amount, $params = array ()) {
// transfer from coinm futures wallet to spot wallet
return $this->futuresTransfer ($code, $amount, 4, $params);
}
}