for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace CryptoMarkets\Binance\Endpoints;
class Status extends Endpoint
{
/**
* Determine if the request need authorized.
*
* @var bool
*/
protected $authorize = true;
* Get the request url.
* @return string
public function getUrl()
return parent::getUrl().'v3/order';
}
* Get the request method.
public function getMethod()
return 'GET';
* Get the request data.
* @return array
public function getData()
return [
'symbol' => $this->params['symbol'],
'orderId' => $this->params['id'],
];
* Map the given array to create a response object.
* @param array $data
public function mapResponse(array $data = [])
'id' => $data['orderId'],
'symbol' => $data['symbol'],
'side' => strtolower($data['side']),
'type' => strtolower($data['type']),
'status' => strtolower($data['status']),
'price' => $data['price'],
'amount' => $data['origQty'],
'executed' => $data['executedQty'],
'timestamp' => $data['time'],