make_offer_and_transact: Make an offer to sell or buy a statement and then transact

Description Usage Arguments Value

Description

Make an offer to sell or buy a statement and then transact if applicable. This is just a wrapper for the combined use of make_offer and transact

Usage

1
2
make_offer_and_transact(users = NULL, user_id = 1, event_id = 1,
  shares = 1, price = 50, yes = 1)

Arguments

users

The users table

user_id

A user id

event_id

An event id

shares

Number of shares

price

The price per share

yes

Boolean. Whether the offer is for or against

Value

A row added to the offers table


joebrew/malariaprediction documentation built on May 15, 2019, 1:40 p.m.