wget http://interactivebrokers.github.io/downloads/twsapi_macunix.973.02.zipunzip twsapi_macunix.973.02.zipcd IBJts/source/pythonclientpython setup.py installcd ../../samples/Python/Testbed/python Program.py -p 4002
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import shioaji as sj | |
| api = sj.Shioaji(simulation=False) | |
| person_id, passwd = 'your person id', 'your password' | |
| api.login(person_id, passwd) | |
| @sj.on_quote | |
| def on_quote(topic, quote_dict): | |
| print(topic, quote_dict) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| execTime = new Date(2018, 10, 18, 15, 0, 0) | |
| btn = document.querySelector(".winlink.detailSwitch") | |
| setTimeout(() => { | |
| btn.click() | |
| console.log(new Date().getMilliseconds(), Date()) | |
| }, execTime.getTime() - new Date().getTime()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from keras.layers import Convolution2D, MaxPooling2D, Dense, Dropout, Activation, Flatten, Input | |
| from keras.models import Model | |
| from keras.optimizers import RMSprop | |
| batchsize = 64 | |
| conv_num_filters_1 = 16 | |
| conv_num_filters_2 = 32 | |
| conv_num_filters_3 = 32 |
NewerOlder