forked from bmino/binance-triangle-arbitrage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
71 additions
and
13 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Scanning Methods | ||
The two methods of scanning are referred to as "callback scanning" and "scheduled scanning." | ||
Prior to v6.0.0 all scanning used the scheduled scanning method. | ||
The `SCANNING.TIMEOUT` configuration value determines which method is used. | ||
A value of `0` will utilize callback scanning and other values will utilize the legacy scheduled scanning. | ||
|
||
|
||
### Callback Scanning | ||
|
||
Triggers calculation cycles for all related positions each time an order book update is received | ||
|
||
##### Pros | ||
|
||
* Rapid identification of arbitrage opportunities | ||
* Efficiently perform analysis cycle when new data is available | ||
|
||
##### Cons | ||
|
||
* More demanding cpu requirements | ||
|
||
|
||
### Scheduled Scanning | ||
|
||
Triggers calculation cycles for all tickers with a delay between each time this is scheduled | ||
|
||
##### Pros | ||
|
||
* Can throttle analysis cycles when using a weaker cpu | ||
* Cannot be overwhelmed by concurrent analysis cycles | ||
|
||
##### Cons | ||
|
||
* Slower to identify arbitrage opportunities | ||
* Inefficient analysis cycles on the same data | ||
|
||
|
||
--- | ||
|
||
|
||
The two scanning methods represent a series of tradeoffs: | ||
|
||
| | Callback Scanning | Scheduled Scanning | | ||
|----:|:-----------------:|:------------------:| | ||
| Quickly identify opportunities | X | | | ||
| Efficient analysis cycles | X | | | ||
| Low CPU requirements | | X | | ||
| Can be throttled | | X | |