Skip to content
/ perl-firi Public

Perl API package for firi.com cryptocurrency exchange

License

Notifications You must be signed in to change notification settings

ktpx/perl-firi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Perl Firi Crypto Trading API Package

Firi.com (previously MiraIex) is a Norwegian Crypto Exchange

NOTE: This replaces the old Repo ktpx/perl-miraiex.

API Documentation: https://developers.firi.com/#/README
API: https://api.firi.com
URL: https://www.firi.com

Examples:

use Firi::API;

# Create a new API object.
my $api = Firi::API->new( apikey => <api_access_key>);

my %data =  ( market => "btcnok", count => 100 );
my $result = $api->market_trade_history(%data); 
                                                                                     
my $result = get_balances();

...

     my %body = (
          'market' => $market,
          'type'   => $side,      # bid / ask
          'price'  => $price,
          'amount' => $amount,
     );

     my $result = $api->create_order(%body);

All calls returns a reference to an array of hashes. See the API documentation for more detail.

Perl Requirements

  • LWP::UserAgent
  • JSON::XS
  • URI
  • Switch
  • Scalar::Util
  • Config::General
  • Digest::SHA
  • Time::HiRes
  • URI::Query

API calls

 time()
 market()
 market_trade_history()
 ticker()
 balances()
 deposit_address()
 deposit_history()
 history_orders()
 history_trades()
 market_depth()
 active_orders()
 orders_history()
 orderid()
 create_order()
 delete_order()
 coin_withdrawal()
 coin_address()
 history_transactions()

Referal code @ firi.com:

https://firi.com/affiliate/?referral=2051eafd

Tip Jar

BTC Tip Jar bc1q4n6ny3qea3lg687n5dr92a607q4gxfvct4tl2v

Licence: GPLv3

About

Perl API package for firi.com cryptocurrency exchange

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages