I hereby claim:
- I am antoniojuliano on github.
- I am antonioj (https://keybase.io/antonioj) on keybase.
- I have a public key ASBqpN6ZjrV5-FgNV-E9hMjQEFW-Gcg94xPrlQ8Bh87kbAo
To claim this, I am signing this object:
Introduction | |
You have been hired by the agency that runs the state lottery to design a strategy for managing the interaction between the lottery's central office and the "lottery terminals" in stores throughout the state. Your task in this assignment is to write a memo describing your proposed design, and discussing how well your design meets the criteria set out below. You will be graded partly on your design, and partly on your analysis and critique of your own design. | |
How the Lottery Works | |
Lottery tickets are sold for $1 each and can be bought from lottery terminals that are placed in convenience stores throughout the state. Each lottery ticket must have at least three things printed on it: the identity of the terminal that printed it, a timestamp (of up to 1 millisecond accuracy) that marks when it was printed, and a "lucky number" which is an integer between 0 and 9,999,999 inclusive. You may add additional information to each ticket. Lottery tickets go on sale at 8:00 AM every Monday, and can be bough |
I hereby claim:
To claim this, I am signing this object:
Proof I still control my Github account but have lost control of my keybase account (antoniojuliano). 6/30/2017 |
0x2774759FEc024eC0891566fD31fB8BcbDDD40549 |
Below you can find API documentation for v1 of our positions REST API.
This API is reached via an HTTP GET
and returns a JSON response.
The position information returned from our API is continuously synced with the positions on-chain.
Feel free to reach out with questions or comments to our shared slack group, or email me directly [email protected] with any further technical questions.
pip install dydx-python |
from dydx.client import Client | |
import dydx.constants as consts | |
import dydx.util as utils | |
client = Client( | |
private_key='0x4f3edf983ac636a65a842ce7c78d9aa706d3b113bce9c46f30d7d21715b23b1d', | |
node='https://parity.expotrading.com' # Can use url of any Ethereum node | |
) | |
# deposit 10 ETH |
# Create order to SELL 10 ETH for 2000 DAI (a price of 200 DAI/ETH) | |
created_order = client.create_order( | |
makerMarket=consts.MARKET_DAI, | |
takerMarket=consts.MARKET_WETH, | |
makerAmount=utils.token_to_wei(2000, consts.MARKET_DAI), | |
takerAmount=utils.token_to_wei(10, consts.MARKET_WETH) | |
) |
pragma solidity 0.4.19; | |
import { SafeMath } from "zeppelin-solidity/contracts/math/SafeMath.sol"; | |
import { ERC20 } from "zeppelin-solidity/contracts/token/ERC20/ERC20.sol"; | |
import { Exchange } from "../shared/Exchange.sol"; | |
import { Proxy } from "../shared/Proxy.sol"; | |
import { MathHelpers } from "../lib/MathHelpers.sol"; | |
/** | |
* @title CoveredOption |