Skip to content

Instantly share code, notes, and snippets.

@debasishg
Created April 25, 2010 07:53
Show Gist options
  • Save debasishg/378249 to your computer and use it in GitHub Desktop.
Save debasishg/378249 to your computer and use it in GitHub Desktop.
newOrder.to.buy(100.shares.of('IBM')) {
limitPrice 300
allOrNone true
valueAs {qty, unitPrice -> qty * unitPrice - 500}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment