Skip to content

Commit 45cd9e7

Browse files
committed
examples
1 parent 799467d commit 45cd9e7

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
vendor/*
2-
index.php
2+
./index.php

examples/index.php

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
const MEXC_CONFIG = [
4+
'MEXC_URL_API' => 'https://api.mexc.com/api/v3',
5+
'MEXC_API_ACCESS_KEY' => 'mx0vglDTfAPSDCof1m',
6+
'MEXC_API_SECRET' => '7cf68dd323074ba3b21554091290b607'
7+
];
8+
9+
require __DIR__ . '/../vendor/autoload.php';
10+
11+
use WilianMaique\Mexc\Mexc\Account;
12+
use WilianMaique\Mexc\Mexc\InfoToken;
13+
use WilianMaique\Mexc\Mexc\PriceTicker;
14+
15+
dd([
16+
'InfoToken' => InfoToken::get('WEMIX'),
17+
'Account' => Account::get(),
18+
'PriceTicker' => PriceTicker::get(),
19+
]);

0 commit comments

Comments
 (0)