mirror of
https://github.com/discountry/ritmex-bot.git
synced 2026-09-11 01:08:07 +00:00
commit
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
- [Bytetrade Create Order](./examples/php/)
|
||||
|
||||
|
||||
```php
|
||||
<?php
|
||||
|
||||
include './ccxt.php';
|
||||
|
||||
date_default_timezone_set('UTC');
|
||||
|
||||
echo 'PHP v' . PHP_MAJOR_VERSION . '.' . PHP_MINOR_VERSION . '.' . PHP_RELEASE_VERSION . "\n";
|
||||
echo 'CCXT v' . \ccxt\Exchange::VERSION . "\n";
|
||||
|
||||
$exchange = new \ccxt\bytetrade(array(
|
||||
// replace with your keys
|
||||
'apiKey' => 'YOUR_API_KEY',
|
||||
'secret' => 'YOUR_SECRET',
|
||||
));
|
||||
|
||||
$exchange->load_markets();
|
||||
$exchange->verbose = true;
|
||||
|
||||
$symbol = 'BTC/USDT';
|
||||
$type = 'limit';
|
||||
$side = 'buy';
|
||||
$amount = 0.000865;
|
||||
$price = 11560;
|
||||
|
||||
$order = $exchange->create_order($symbol, $type, $side, $amount, $price);
|
||||
print_r ($order);
|
||||
|
||||
```
|
||||
Reference in New Issue
Block a user