Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouaini528 committed Aug 21, 2020
1 parent 5608c72 commit f160858
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,10 @@ $crex->setOptions([

### Spot API

Market related API [More](https://github.com/zhouaini528/crex24-php/blob/master/tests/market.php)
Public Market related API [More](https://github.com/zhouaini528/crex24-php/blob/master/tests/market.php)
```php
$crex=new Crex();

try {
$result=$crex->market()->getCurrencies();
print_r($result);
Expand Down Expand Up @@ -138,6 +140,8 @@ try {

Accounts related API [More](https://github.com/zhouaini528/crex24-php/blob/master/tests/account.php)
```php
$crex=new Crex($key,$secret);

try {
$result=$crex->account()->getBalance([
//'currency'=>'FREE'
Expand Down Expand Up @@ -176,6 +180,8 @@ try {
Order related API [More](https://github.com/zhouaini528/crex24-php/blob/master/tests/trading.php)

```php
$crex=new Crex($key,$secret);

try {
$result=$crex->trading()->postPlaceOrder([
'instrument'=>'ETH-BTC',
Expand Down
6 changes: 6 additions & 0 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ $crex->setOptions([

Market related API [More](https://github.com/zhouaini528/crex24-php/blob/master/tests/market.php)
```php
$crex=new Crex();

try {
$result=$crex->market()->getCurrencies();
print_r($result);
Expand Down Expand Up @@ -138,6 +140,8 @@ try {

Accounts related API [More](https://github.com/zhouaini528/crex24-php/blob/master/tests/account.php)
```php
$crex=new Crex($key,$secret);

try {
$result=$crex->account()->getBalance([
//'currency'=>'FREE'
Expand Down Expand Up @@ -176,6 +180,8 @@ try {
Order related API [More](https://github.com/zhouaini528/crex24-php/blob/master/tests/trading.php)

```php
$crex=new Crex($key,$secret);

try {
$result=$crex->trading()->postPlaceOrder([
'instrument'=>'ETH-BTC',
Expand Down

0 comments on commit f160858

Please sign in to comment.