openBarter

A central limit order book (CLOB) is the key component of a global markets performing competition on price, and markets organize the economy. openBarter implements essentials primitives of a CLOB and extends it allowing multilateral barter exchange. It performs competition without the requirement of a central currency to express prices. It can be used to exchange property of any value that can be measured including natural resources, ecological quota, energy and even currencies.

Potential applications

The goal of economy is to make the best use of scarce resources available. But world wide resources are decreasing. It's population grows and inequality of allocation of these resources is growing. In this context, the benefits of openbarter are for:

Ecological control
Artificial global aggregates such as CO2 quotas are not necessary even when the diversity of resource rationing increases. Ecological control of markets remains efficient even with a deep economic crisis and drastic rationing.
For countries with rich underground
Most are also poor with a weak currency. Save underground resources while decrease economic unbalance.
Smart grid
Allow energy, water or waste quota exchange for each level of the smart grib independently of others.
Community currencies(CC)
Allow economic exchange between CCs or between CC and fiat money without compromizing the sovereignty of the CC.

Overview

openBarter accepts barter orders from owners and produces movements exchanging ownership between them. It allows cyclic exchange between more than two partners. Each value is measured by a quantity using a standard defined by it's pecular quality independently of any currency. openBarter accepts barter orders of the form:

I propose a value in exchange of an other for a ratio ω.

A price using a currency can be seen as the measurement of the exchange will. The ratio ω = (quantity offered)/(quantity required) measures the same will: It grows as the quantity offered and decreases as the quantity required grows. The market finds potential exchange cycles with two partners or more and performs a competition between them. This competition between potential cycles maximizes the product of their ω.

Orders

Can be:

barter submission
Unilateral commitment to exchange a value owned by the author of the order. Several requirements can be expressed for a single value offered.
quote submission
Provides the result of a barter order without committment. Equivalent of a price discovery but applied to ω. The order book remains unchanged by this order.
barter removal
Removes barter orders related to a single value provided.

A movement provides a quantity and at the same time provides an other. It is related to a barter order. The ratio ω' = (quantity provided)/(quantity obtained) is the result of a compromize between barter orders of the exchange cycle where the economic product of the exchange is fairly distributed between partners of the cycle. A barter LIMIT order is used when it's author requires that ω'>=ω, otherwise a barter BEST order is used. Quote can also be BEST or LIMIT.

Differences with a regular CLOB

The competition between potential cycles maximizes a non-dimensional quantity Ω that is the mathematical product of ω of orders of a cycle. When applied to bilateral exchange cycles, the choice made by this competition on Ω is the same as what would be obtained using the best price rule. But the difference between Ω maximization and individual profit maximization of the best price rule appears when cycles have more than two partners. As ω measures the individal exchange will, their product Ω on a cycle can be seen as measuring the collective exchange will. In this sense and supposing the initial value allocation is fair, maximizing Ω or the collective exchange will is compliant with a fundamental democratic principles.

Performances

Openbarter is an extension of postgreSQL, the linux of databases.

maximum number of cycles partners
64
atomic transactions
Exchange cycles are wrapped in atomic transactions with full ACID property.
fluidity
Simulations show that the fluidity and opportunities of both cooperation and profit are higher than with a regular CLOB. Non-bilateral cycles increase cooperation for low order book volumes while competition prevails for higher volumes.
percolation threasold
An empty order book does not provide any movement, but the flow of values grows as the volume of the order book. A fluidity threasold is observed when the volume of the book increases depending on the diversity of qualities of the market. This threasold appears earlier for openBarter than for a regular CLOB. This illustrates the percolation threasold observed for random graphs - a research field in mathematics and physics.
Execution speed
The exploration of potential cycles is limited in breadth and depth providing high speed even for execution with a large order book and despite of the complexity of combinatorics. Simulation provided a mean time of 150 milliseconds for the execution of a single barter order with 100 000 orders on a small laptop.
Security
Security mechanisms offered by postgreSql are preserved by the implementation of openBarter.

Reference

This page describes detailed results of simulations.

Patent FR0602620 is out in the public domain, related to a preliminary definition of openBarter.

This paper describes openBarter principles.

paper published on the World Economic Association.

Versions

The latest version 0.8.2 is stable. It can be dowload from this page.

Development

You can fork the project on github

It has also been released on PGXN

Contributors

Olivier Chaussavoine < olivier DOT chaussavoine AT gmail.com >

Licence

openBarter - The maximum common wealth for the minimum collective effort - Copyright (C) 2008->2013 olivier Chaussavoine

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see gnu licences.

olivier dot chaussavoine at gmail.com