Currently, the Binance testnet environment doesn’t directly support adding virtual funds via the API. Instead, you should use the Binance testnet website to add virtual funds for testing.
To check the balance in your testnet account, use the account endpoint:
$response = $client->account();
echo json_encode($response);
To create a trade order, you can use the newOrder method:
$response = $client->newOrder(‘BNBUSDT’, ‘BUY’, ‘LIMIT’, [
‘quantity’ => 1,
‘price’ => 0.1,
‘timeInForce’ => ‘GTC’
]);
echo json_encode($response);
For detailed examples and additional functionalities, check the GitHub page for Binnace PHP connector and the Packagist page for installation and updates: