Skip to content

Instantly share code, notes, and snippets.

@p5150j
Created May 4, 2018 15:14
Show Gist options
  • Save p5150j/4b39fd58eeedc18ed8b549141ee9867e to your computer and use it in GitHub Desktop.
Save p5150j/4b39fd58eeedc18ed8b549141ee9867e to your computer and use it in GitHub Desktop.
token {
address,
symbol
}
market { // a trade place of 2 tokens; a quote token, and a non-quote token
Id // nonQuoteToken.symbol + ‘-’ + quoteToken.symbol
sells: order[],
buys: order[]
}
order *{
Id,
type, // ‘buy/sell’; **
makerToken: {..
},
takerToken: {..
},
makerTokenAmount,
takerTokenAmount,
rate // ***
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment