# Barter Exchange

Zoe Alpha Release v0.8.1. Last updated 2020-9-15.
# View the code on Github(opens new window) (Last updated: 2020/9/14)
# View all contracts on Github(opens new window)

Barter Exchange takes offers for trading arbitrary goods for one another.

This Barter Exchange accepts offers to trade arbitrary goods for other things. It doesn't require registration of Issuers. If two offers satisfy each other, it exchanges the specified amounts in each side's want clause.

Since it pays no attention to keywords, and doesn't require registration of issuers, it can handle trades between goods of any type. It's like conventional "barter" in that there's no common currency. "I have cantaloupes and am looking for pillow cases." It keeps an order book, and each time it receives a new offer, it looks for matches throughout the order book.

The Barter Exchange only accepts offers that look like { give: { In: amount }, want: { Out: amount} }

The want amount will be matched, while the give amount is a maximum. Each successful trader gets their want and may trade with counter-parties who specify any amount up to their specified give.