Skip to content

Commit 46f45a0

Browse files
committed
"Receive BTC/USD rate" example added.
1 parent 365f108 commit 46f45a0

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

examples/public/btc_usd.php

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
/**
4+
* Receive BTC/USD rate.
5+
*/
6+
7+
require_once("../../vendor/autoload.php");
8+
9+
use poloniex\api\Poloniex;
10+
11+
// Returns ticker based BTC rate value in USD.
12+
$tickerRate = Poloniex::getTickerBTCRate();
13+
14+
// Returns estimated (by order book) BTC rate value in USD.
15+
$estimatedRate = Poloniex::getEstimatedBTCRate();

0 commit comments

Comments
 (0)