Skip to content

Commit ab70efc

Browse files
authored
Merge pull request #511 from yzh-pelle/live-tests
Live tests
2 parents 2b69dd5 + 54f481f commit ab70efc

File tree

3 files changed

+1316
-13
lines changed

3 files changed

+1316
-13
lines changed

php-binance-api.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,6 +1077,7 @@ public function transfer(string $type, string $asset, string $amount, $fromSymbo
10771077
'type' => $type,
10781078
'asset' => $asset,
10791079
'amount' => $amount,
1080+
'sapi' => true,
10801081
];
10811082
// todo: check this method with real account
10821083
if ($fromSymbol) {
@@ -1115,6 +1116,7 @@ public function transfersHistory(string $type, $startTime = null, $endTime = nul
11151116
{
11161117
$params = [
11171118
'type' => $type,
1119+
'sapi' => true,
11181120
];
11191121
// todo: check this method with real account
11201122
if ($startTime) {
@@ -4219,7 +4221,7 @@ public function futuresConstituents(string $symbol)
42194221
'symbol' => $symbol,
42204222
'fapi' => true,
42214223
];
4222-
return $this->httpRequest("v1/indexInfo", 'GET', $parameters);
4224+
return $this->httpRequest("v1/constituents", 'GET', $parameters);
42234225
}
42244226

42254227
/**
@@ -6149,4 +6151,4 @@ public function convertStatus($orderId = null, $quoteId = null)
61496151
}
61506152
return $this->httpRequest("v1/convert/orderStatus", 'GET', $params, true);
61516153
}
6152-
}
6154+
}

0 commit comments

Comments
 (0)