Skip to content

Commit

Permalink
Merge branch 'main' of github.com:ktpx/perl-firi
Browse files Browse the repository at this point in the history
  • Loading branch information
ktpx committed Sep 21, 2022
2 parents 1d89359 + 375e518 commit 6d04746
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,27 @@ URL: https://www.firi.com

Examples:
```
my $api = Miraiex::API->new( apikey => <api_access_key>);
```
```
my $result = $api->market_trade_history( market => $market,
count => $count );
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](https://developers.miraiex.com/#/README) documentation for
Expand Down

0 comments on commit 6d04746

Please sign in to comment.