We are pleased to present Peatio Open Source 2.3.0.
This release concentrated on new Admin API module, new features and enhancements:
1. Refactoring to maker-taker fee model. Major Trade model rework. 2. Admin API module for tower. 3. Trading Fee Schedule based on Member group. 4. Introduce adjustments. 5. Beneficiaries model and fiat withdrawal.
This release notes is must-read for migrating from older versions.
#2278: Market & Currency admin forms corrections & improvements
#2292: Switch to maker-taker fee model. Major Trade model rework
This patch replaces side-related (buy or sell) with maker-taker fee model. Its basic structure gives a fee discount to market makers providing liquidity (the makers); and charges higher fee to customers who take liquidity out of the market (the takers). Fee could be configured per market. Next changes were produced by switching to maker-taker fee model:
taker_feein Market model;
taker_feein Order model;
Trade model rework consist of next changes:
Feature admin panel api for:
Unify API doc files structure and naming.
Add Beneficiary model which can store both fiat crypto beneficiary data. Custom beneficiary fields like country, account_number, bank_swift_code are stored in JSON format. Also beneficiary contains name, description & currency_id in string format.
On beneficiary creation pin generated and saved in DB user needs to activate beneficiary with pin sent by email. Create & update actions are published to RabbitMQ by Event API.
There are 3 states of beneficiary:
Beneficiary account API consists of 5 endpoints:
Since we can store Beneficiaries in peatio starting from #2347 now we can
implement user withdraw API for both fiat & crypto currencies. Itmeans that in
this patch we have replaced POST accounts/withdraw
rid param with
beneficiary_id. This change gives ability to use active beneficiaries for
both fiat & crypto withdrawals.
Beneficiary is now exposed in Admin API as field of
Withdraw so admin can
validate it directly.
beneficiary_id foreign key was added to
Withdraw model so now it has
belongs_to association with
Also this patch improves
amount precision logic. Instead
of rounding attributes on creation now attributes precision is validated on
This patch also adds additional validation for Beneficiary data attribute