FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
php-binance-api/examples/constructor.php at master · ccxt/php-binance-api · GitHub
ccxt
/
php-binance-api
Public
Notifications
You must be signed in to change notification settings
Fork
484
Star
647
Code
Issues
76
Pull requests
11
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
php-binance-api
/
examples
/
constructor.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
28 lines (17 loc) · 857 Bytes
Breadcrumbs
php-binance-api
/
examples
/
constructor.php
Copy path
File metadata and controls
executable file
·
28 lines (17 loc) · 857 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
require
'
../php-binance-api.php
'
;
$
api_key
=
"
z5RQZ9n8JcS3HLDQmPpfLQIGGQN6TTs5pCP5CTnn4nYk2ImFcew49v4ZrmP3MGl5
"
;
$
api_secret
=
"
ZqePF1DcLb6Oa0CfcLWH0Tva59y8qBBIqu789JEY27jq0RkOKXpNl9992By1PN9Z
"
;
$
api
=
new
Binance
\
API
(
$
api_key
,
$
api_secret
);
$
result
=
$
api
->
marketBuy
(
"
BNBBTC
"
,
1
);
print_r
(
$
result
) .
"\n"
;
$
api_key
=
"
z5RQZ9n8JcS3HLDQmPpfLQIGGQN6TTs5pCP5CTnn4nYk2ImFcew49v4ZrmP3MGl5
"
;
$
api_secret
=
"
intentionally wrong
"
;
$
api
=
new
Binance
\
API
(
$
api_key
,
$
api_secret
);
$
result
=
$
api
->
marketBuy
(
"
BNBBTC
"
,
1
);
print_r
(
$
result
) .
"\n"
;
$
api_key
=
"
YDjDADdXLCkY1BnjFxKVvBzheIyFjtafSU4yyadffiBXdezyViMi0ngiVBawwd3x
"
;
$
api_secret
=
"
CtWl7kkYB4eKePyosmuGbJH8FBH4ArTB2qOIedHcOYfzALDG2eD46mWVGsf7lrHJ
"
;
// trading disabled
$
api
=
new
Binance
\
API
(
$
api_key
,
$
api_secret
);
$
result
=
$
api
->
marketBuy
(
"
BNBBTC
"
,
1
);
print_r
(
$
result
) .
"\n"
;
Back
|
FazBrowse Home
|
New Git URL