Code Monkey home page Code Monkey logo

kuna-api's People

Contributors

madmis avatar stgodjah avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

kuna-api's Issues

Make more detailed readme about your app. Show more examples how to use methods and etc

<?php
require  'vendor/autoload.php';     // подгрузка пакетов
use madmis\KunaApi\KunaApi;

$api = new KunaApi(
    'https://kuna.io',
    'XXXXXXXXXXXXXXXXX',
    'XXXXXXXXXXXXXXXXXX'
);


function dd($var){
   echo '<pre>';
   print_r( $var );
}


// ============================================> Public (4 methods)
// 1) Время на сервере биржи (https://kuna.io/api/v2/timestamp)
$timestamp = $api->shared()->timestamp();
echo '<br>';

// 2) Последние данные по рынку (пара) (https://kuna.io/api/v2/tickers/btcuah)
$tickers = $api->shared()->tickers('btcuah');

// 3) Биржевой стакан (https://kuna.io/api/v2/order_book?market=btcuah)
$birgaStakan = $api->shared()->orderBook('btcuah');

// 3.1) Биржевой стакан продаж (https://kuna.io/api/v2/order_book?market=btcuah)
$birgaStakanAsks = $api->shared()->asksOrderBook('btcuah');

// 3.2) Биржевой стакан покупок (https://kuna.io/api/v2/order_book?market=btcuah)
$birgaStakanBids = $api->shared()->bidsOrderBook('btcuah');

// 4) История торгов (https://kuna.io/api/v2/trades?market=btcuah)
$tradesHist = $api->shared()->tradesHistory('btcuah');


// ============================================> Private ( methods)
// 5) Информация о пользователе и активах (https://kuna.io/api/v2/members/me)
echo 'Timestamp == ' . $timestamp . '<br>';
$me = $api->signed()->me(); // does not work
dd($me);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.