Skip to content

Instantly share code, notes, and snippets.

@carolplay
carolplay / Token.sol
Created August 10, 2018 20:51
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=false&gist=
pragma solidity ^0.4.23;
contract Token {
mapping(address => uint256) balances;
uint256 totalSupply;
function Token(uint256 _initialAmount) public {
balances[msg.sender] = _initialAmount;
totalSupply = _initialAmount;
}
timestamp symbol bidSize bidPrice askPrice askSize
2017-05-01T00:00:00.867Z XBTUSD 1337 1366.2 1366.3 285
2017-05-01T00:00:01.060Z XBTUSD 715 1366.7 1366.8 146
2017-05-01T00:00:02.340Z XBTUSD 715 1366.7 1366.9 1
2017-05-01T00:00:03.023Z XBTUSD 624 1366.8 1366.9 1
2017-05-01T00:00:03.160Z XBTUSD 2733 1366.8 1366.9 1
2017-05-01T00:00:04.101Z XBTUSD 624 1366.8 1366.9 1
2017-05-01T00:00:04.499Z XBTUSD 624 1366.8 1367 622
2017-05-01T00:00:04.639Z XBTUSD 2733 1366.8 1367 622
2017-05-01T00:00:04.937Z XBTUSD 624 1366.8 1367 622