-
Notifications
You must be signed in to change notification settings - Fork 1
How it work
世外桃源 KPT-D edited this page Mar 24, 2018
·
3 revisions
- Every seconds, profitlocks stream quotes from exchanges.
- Filters out quotes that are not usable for arbitrage. For example, if
maxShortPosition
config is 0 and the current position is 0 for a broker, the ask quotes for the broker will be filtered out. - Calculates the best ask and the best bid from the filtered quotes and checks if the expected profit is larger than the configured minimum value,
PROFIT_SUM
. If there is no arbitrage opportunity, profitlocks waits for the next iteration. - profitlocks concurrently sends a buy leg and a sell leg to each broker that offered the best bid or the best ask.
- profitlocks checks whether the legs are filled or not for the configured period, say 30 seconds.
- If the both legs are filled, shows the profit.
Profit ABA
* BTC: 1Q4NRi9bQwHYUiwhSiNqZd4QU9RLZFRFdj
* NEO: AHMT84b5vUCHdh9NzpVvBWubmAbMsproG5
* ETH: 0x25bf0C8d7909a581549Dc2d075Ba12364D5ec0CA
* BCH: 1DjpcAMbeBZAsJyz9aJVfj2zci35mJ5HYi
* BTG: GfEHMaSspHQWYFQnia7YctDPUQhsAyjSev
* EOS: 0x12D3C114dd98DA9E00E0F405d4BFD18DD2236eEd
* ZRX: 0x12D3C114dd98DA9E00E0F405d4BFD18DD2236eEd
* IOTA: FXM9HGCPMBMSHBCULKSXVREOFETAHKCEUFALKDOURMXLRDWZWFNGSWFEJUZQNPECZOHBXOUEWFCOZXXX9HSQJCCQTW