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
async = require 'async' | |
_ = require 'lodash' | |
glob = require 'glob' | |
path = require 'path' | |
expect = require 'expect.js' | |
fs = require 'fs' | |
migrationFilePattern = /^(\d+)(-.*[.]coffee)/ | |
getAllMigrations = -> |
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
fs = require 'fs' | |
GEO_FIELD_MIN = 0 | |
GEO_FIELD_MAX = 1 | |
GEO_FIELD_COUNTRY = 2 | |
exports.ip2long = (ip) -> | |
ip = ip.split '.', 4 |
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
'use strict' | |
exports.add = (arr) -> | |
if arr.length is 0 | |
return [1] | |
result = [] | |
i = arr.length - 1 | |
c = 1 |
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
webdriverReattach = require './webdriverReattach' | |
webdriverReattach.captureBrowser() | |
exports.config = | |
seleniumAddress: 'http://localhost:4444/wd/hub' |
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
<html> | |
<head> | |
<script src='https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.7.0/moment.js'></script> | |
<script> | |
console.log(moment('2015-04-30T00:00:00').diff(moment('2015-04-01T00:00:00'), 'hours')); | |
</script> | |
</head> | |
<body> | |
</body> |
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
-- | |
-- xmonad example config file for xmonad-0.9 | |
-- | |
-- A template showing all available configuration hooks, | |
-- and how to override the defaults in your own xmonad.hs conf file. | |
-- | |
-- Normally, you'd only override those defaults you care about. | |
-- | |
-- NOTE: Those updating from earlier xmonad versions, who use | |
-- EwmhDesktops, safeSpawn, WindowGo, or the simple-status-bar |
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
BAH64626586 successfully traded over 200 trades against my account, where my bids/asks were only at market value, so only open very short amounts of time. | |
Another successful strategy played the market, by purchasing early and selling late, after the market had climbed. |
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
Ticker showed long runs at the same last trading price. The volume of these trades is also consistent, | |
but is probably just the behaviour of the honest bot. | |
Strategy: | |
1. Identify long runs of same last price in ticker. | |
2. Identify who is trading at the these long runs. (open orders and traders against open orders) | |
3. Which direction are they trading? | |
4. Identify consecutive runs. | |
5. Who is trading buy/sell across rising consecutive runs? |
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
Assumptions: | |
1. Bots like to trade at the same quantities each time. | |
Profitable trades can be identified from the ticker when correlated with this unique quantity. | |
2. Order id and timestamps are monotonically increasing. | |
Orders made at regular intervals provide a correspondence between timestamp ranges | |
and order id ranges. | |
3. The most profitable trader is the inside trader. | |
Givens: |
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
Number of trades per account around price changes. | |
(2 2 2 2 2 ...) is suspicious. | |
(["MAC11396996" (2)] | |
["WMG74660049" (2)] | |
["KIB82586665" (2)] | |
["JAL12920359" (2)] | |
["KLB21545517" (2)] | |
["HRH56719296" (2)] |
OlderNewer