The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Crypto::Exchange::Binance::Spot::API - Binance Spot API

USAGE

 my $binance = Crypto::Exchange::Binance::Spot::API->new;

Get Prices

 $hash = $binance->prices(pair => { coin => 'XRP', base => 'GBP' });

 Got: $hash = { last_price => 1234, pair => {coin => 'XRP', base => 'GBP'} }

Get Wallet Balances

 $hash = $binance->balances();

 Got: $hash = {
    XRP => { available => 123, in_order => 0, staking => 0 },
    GBP => { available => 321, in_order => 0, staking => 0 },
 }

Get the opening orders

 $list = $binance->list_open_orders(pair => { coin => 'XRP', base => 'GBP' });

 Got: $list = [
    {
        pair => { coin => 'XRP', base => 'GBP' },
        order_id => 123,
        external_id => 'YOUR OWN DEFINED ID',
        buy_or_sell => 'buy|sell',
        order_qty   => 55,
        filled_qty  => 54,
        timestamp   => 131321321321,
        filled_qty  => 131231321321,
    },
    ...
 ];

Open Source

 git@github.com:mvu8912/perl5-crypto-exchange-binance-spot-api.git