Oasis Dex

Overview - REST API - Query API

Simple Market

A simple open orderbook market. Enables orders to be added to the pool and allows anyone to take a specified quantity of an order. Cancelled orders are refunded to the maker.

Offer

Alias: make

Put an order onto the books. Transfers funds from the caller to Oasis.

function offer(uint wad, ERC20 gemA, uint jam, ERC20 gemB) returns (bool) { ... }
Buy

Alias: take

Take an order off the books. Transfers funds from the caller to the offer maker, and from Oasis to the caller.

function buy(uint offer, uint qty) returns (bool) { ... }
Cancel

Alias: kill

Cancel an offer - refunds the maker.

function uint(uint offer) returns (bool success) { ... }