Fix styling
This commit is contained in:
1 parent
38114203a1
commit
526ef64ad8
10 files changed
+151
-154
No files matched your search
@@ -9,8 +9,7 @@ interface FlashClosePositionRequestContract
|
||||
/**
|
||||
* Flash close position by position ID
|
||||
*
|
||||
* @param string $positionId Position ID
|
||||
* @return ResponseInterface
|
||||
* @param string $positionId Position ID
|
||||
*/
|
||||
public function flashClosePosition(string $positionId): ResponseInterface;
|
||||
}
|
||||
@@ -9,9 +9,8 @@ interface GetPendingPositionsRequestContract
|
||||
/**
|
||||
* Get pending positions
|
||||
*
|
||||
* @param string|null $symbol Trading pair (optional)
|
||||
* @param string|null $positionId Position ID (optional)
|
||||
* @return ResponseInterface
|
||||
* @param string|null $symbol Trading pair (optional)
|
||||
* @param string|null $positionId Position ID (optional)
|
||||
*/
|
||||
public function getPendingPositions(?string $symbol = null, ?string $positionId = null): ResponseInterface;
|
||||
}
|
||||
@@ -9,8 +9,7 @@ interface GetSingleAccountRequestContract
|
||||
/**
|
||||
* Get account details with the given margin coin
|
||||
*
|
||||
* @param string $marginCoin Margin coin (e.g., 'USDT')
|
||||
* @return ResponseInterface
|
||||
* @param string $marginCoin Margin coin (e.g., 'USDT')
|
||||
*/
|
||||
public function getSingleAccount(string $marginCoin): ResponseInterface;
|
||||
}
|
||||
@@ -33,7 +33,7 @@ class Header
|
||||
$result = '';
|
||||
|
||||
foreach ($sortedParameters as $key => $value) {
|
||||
$result .= $key . $value;
|
||||
$result .= $key.$value;
|
||||
}
|
||||
|
||||
return $result;
|
||||
@@ -82,7 +82,7 @@ class Header
|
||||
// Step 3: Create digest: SHA256(nonce + timestamp + api-key + queryParams + body (if not empty))
|
||||
if (strlen($bodyString) == 0) {
|
||||
$digestInput = $nonce.$timestamp.$apiKey.$queryParamsString;
|
||||
}else{
|
||||
} else {
|
||||
$digestInput = $nonce.$timestamp.$apiKey.$queryParamsString.$bodyString;
|
||||
}
|
||||
$digest = hash('sha256', $digestInput);
|
||||
|
||||
Reference in new issue
Block a user