[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release / sync 0.40.0 staging -> master #3591

Merged
merged 381 commits into from
Jun 16, 2021
Merged
Changes from 1 commit
Commits
Show all changes
381 commits
Select commit Hold shift + click to select a range
961f259
(fix) resolve remaining issues with cancel_all in KuCoin
May 19, 2021
bfc800f
(fix) resolve OrderFilledEvent reporting additional filled amount in …
May 19, 2021
a9467c6
delete create_and_save_wallet, it is never used. setup test for get_k…
May 19, 2021
fcd325e
test_save_wallet
May 19, 2021
91e36a7
test_save_wallet and test_import_and_save_wallet
May 19, 2021
a5bcc0c
Add comment
May 19, 2021
3949319
Add test for test_list_wallets
May 19, 2021
7805d13
Fix dev_4_twap and dev_5_vwap strategies to avoid error when creating…
aarmoa May 19, 2021
1b238f7
fixing minor typo that produced error when using order_override. Remo…
nicolasbaum May 19, 2021
acc194b
(refactor) update xemm config template
glenntomas May 20, 2021
0a30f08
(fix) fix KuCoin MarketStates not being restored correctly
May 20, 2021
29d500e
Merge pull request #3408 from CoinAlpha/refactor/unit_tests_test_wall…
james-hummingbot May 20, 2021
5632c87
(fix) fix last_states not being updated on tracked_orders
May 20, 2021
1021be8
Rename the unit test module for dev_4_twap to follow the general pattern
aarmoa May 20, 2021
fde0364
Test functions from ssl_cert
May 20, 2021
e5cdfd4
Merge pull request #3412 from CoinAlpha/refactor/unit_tests_test_ssl_…
james-hummingbot May 20, 2021
2a54ff8
Convert dev_5 strategy to a subclass of StrategyPyBase
aarmoa May 20, 2021
1ceba1a
Added tests for asyncio_throttle
nicolasbaum May 20, 2021
18440dc
Added tests for asyncio_throttle
nicolasbaum May 20, 2021
5a38892
Thank you flake
nicolasbaum May 20, 2021
019208c
update uni v3 to prevent some unwanted behaviours
vic-en May 21, 2021
81534a1
Unit tests for async_retry
May 21, 2021
1a1859f
Merge pull request #3415 from CoinAlpha/refactor/dev_4_and_5_strategies
aarmoa May 21, 2021
60d7ff5
Reorganize code
May 21, 2021
69bbd8a
Add setup
May 21, 2021
d14b4d3
Merge pull request #3421 from CoinAlpha/refactor/unit_tests_async_retry
james-hummingbot May 21, 2021
dcf3899
Added tests for tracking_nonce util
nicolasbaum May 21, 2021
4b301f1
Thank you flake
nicolasbaum May 21, 2021
43b65be
Merge branch 'development' into refactor/hummingbot_client_performance
aarmoa May 21, 2021
47e52e9
Thanks again flake
nicolasbaum May 21, 2021
d183141
Removed unnecessary global variable
nicolasbaum May 21, 2021
df19f0c
Merge pull request #3422 from CoinAlpha/refactor/tracking_nonce_tests
nicolasbaum May 21, 2021
b274fea
add polling for positions and add warning when starting strategy
vic-en May 21, 2021
500de02
Merge pull request #3420 from CoinAlpha/feat/uniswap_v3_improvements
vic-en May 21, 2021
30f9d73
Merge branch 'development' into refactor/unit_tests
aarmoa May 21, 2021
d99364c
Removed usage of timer, patched sleep method
nicolasbaum May 21, 2021
637a77d
Delete conf_demo_simple_buy_strategy_TEMPLATE.yml
nicolasbaum May 21, 2021
3417181
Merge pull request #3416 from CoinAlpha/refactor/nico_core_tests
nicolasbaum May 21, 2021
4a42bb4
Merge branch 'development' into fix/connectors_cancel_all_behaviour
dennisocana May 22, 2021
4d880cd
Merge pull request #3342 from CoinAlpha/fix/connectors_cancel_all_beh…
dennisocana May 22, 2021
c13fb98
Merge branch 'development' into fix/ascendex_not_handling_partial_fills
dennisocana May 22, 2021
6cf55a0
Merge pull request #3386 from CoinAlpha/fix/ascendex_not_handling_par…
dennisocana May 22, 2021
bc1ebb2
Changed behavior to avoid the eta transformation when order_override=…
nicolasbaum May 22, 2021
3106f2e
Merge branch 'development' into fix/avellaneda_order_override
nicolasbaum May 22, 2021
20df072
Added tests for trading_pair_fetcher
nicolasbaum May 22, 2021
cf4890b
Added code to renew TradingPairFetcher module to avoid using already …
nicolasbaum May 22, 2021
26dbc63
Changed way to recycle module TradingPairFetcher in sys.modules
nicolasbaum May 22, 2021
06a526f
Thank you flake
nicolasbaum May 22, 2021
108b3d3
removed get_instance from trading_pairs test
nicolasbaum May 22, 2021
093d058
Fixed test
nicolasbaum May 22, 2021
b8c28f7
Thank you flake
nicolasbaum May 22, 2021
21ee66a
Fixed edge case when there's no balance and greek parametrs are not c…
nicolasbaum May 23, 2021
2025e35
Merge branch 'fix/avellaneda_order_override' of https://github.com/Co…
nicolasbaum May 23, 2021
294d138
(refactor) refactor dev_0_hello_world to inherit StrategyPyBase
May 11, 2021
16eb89b
(add) include some description for HelloWorldStrategy
May 11, 2021
0ba7725
(refactor) made misc changes to config_map.py and start.py and add ne…
May 18, 2021
661ef6c
(refactor) refactor dev_1_get_order_book to inherit StrategyPyBase
May 19, 2021
cdfcab5
(refactor) refactor dev_1_get_order_book to include live orderbook up…
May 19, 2021
8fc2312
(refactor) refactor dev_2_perform_trade strategy
May 21, 2021
c8fe731
Merge pull request #3426 from CoinAlpha/refactor/tests_trading_pair_f…
nicolasbaum May 23, 2021
29bbb5f
Fixed if condition for eta transformatino
nicolasbaum May 23, 2021
ab1fc4e
(refactor) refactor unit tests for dev_2_perform_trade strategy
May 21, 2021
fc998ca
Merge pull request #3409 from CoinAlpha/fix/avellaneda_order_override
dennisocana May 24, 2021
6660b5a
(fix) quickfix for Dev2PerformTradeUnitTest.test_order_filled
May 24, 2021
fc222c2
(add) add unit tests for the various supported PriceType
May 24, 2021
5f70062
(add) add unit tests for dev_0_hello_world
May 24, 2021
bb0b00e
(add) add unit tests for dev_1_get_order_book
May 24, 2021
f031e0e
Merge branch 'development' into refactor/unit_tests
aarmoa May 24, 2021
6e59939
Fix test
May 24, 2021
c5ccffe
Merge pull request #3358 from CoinAlpha/refactor/unit_tests
dennisocana May 24, 2021
627ea60
Merge branch 'refactor/hummingbot_client_performance' of https://gith…
aarmoa May 24, 2021
d51e1c0
Revert "Revert "refactor/hummingbot client performance""
aarmoa May 24, 2021
32dd1da
Recovering changes lost with a previous revert
aarmoa May 24, 2021
7265cb8
Unused import
May 24, 2021
1b2927e
Merge branch 'development' of ssh://github.com/CoinAlpha/hummingbot i…
May 24, 2021
d861c4f
Stop server on deconstruction
May 24, 2021
8e22cd7
(add) add unit tests for MarketTradingPairTuple
May 25, 2021
a8337d4
(add) add unit tests for OrderTracker [WIP]
May 25, 2021
8d2041b
Begin documenting liquidity mining strategy depencies
May 25, 2021
bfde1ca
Changed two variable names to snake case
aarmoa May 25, 2021
f972d6c
Add documentation for hummingbot/client/settings.py
May 25, 2021
af3a3c9
Merge branch 'development' into staging
dennisocana May 25, 2021
507d44c
Simplify test_ethereum and remove unnecessary code
May 25, 2021
e8ef3b5
Merge pull request #3433 from CoinAlpha/refactor/unit_tests_fix_test_…
james-hummingbot May 25, 2021
378b8d0
Merge pull request #3441 from CoinAlpha/staging
dennisocana May 26, 2021
0fe5c13
(refactor) include python wrapper functions for remaining cython func…
May 26, 2021
4204de8
Merge pull request #3445 from CoinAlpha/refactor/add_python_wrapper_f…
CrimsonJacket May 26, 2021
a99be90
Merge branch 'refactor/unit_tests' into feat/unit_tests_for_strat_bas…
May 26, 2021
ea30af5
(feat) add helper functions for OrderTrackerUnitTests [WIP]
May 26, 2021
26c3764
Merge branch 'refactor/unit_tests' into feat/unit_tests_for_strat_bas…
May 26, 2021
ee26cb7
Setup dummy test for liquidity mining
May 26, 2021
245b87a
Add some comments to liquidity_mining, setup a failing test
May 26, 2021
76d4023
(feat) add missing wrapper functions to OrderTracker
May 27, 2021
5d6ccf9
(feat) add OrderTrackerUnitTests
May 27, 2021
a2a25f9
Merge pull request #3451 from CoinAlpha/refactor/add_missing_python_w…
Nullably May 27, 2021
16b6e53
Merge branch 'refactor/unit_tests' into feat/unit_tests_for_strat_bas…
May 27, 2021
dfe94e6
(feat) add additional tests to OrderTracker
May 27, 2021
f25e655
Merge branch 'development' into refactor/hummingbot_client_performance
aarmoa May 27, 2021
a2e3dac
Merge pull request #3395 from CoinAlpha/refactor/hummingbot_client_pe…
aarmoa May 27, 2021
ec67083
Predefine all the tests we want to do
May 27, 2021
e437686
Order refresh not working
May 27, 2021
ae7ac64
Merge branch 'development' into refactor/unit_tests
Nullably May 28, 2021
6ea7dce
Test tolerance level
May 28, 2021
b8ea57e
(refactor) refactor some of the functions from StrategyPyBase and Str…
May 28, 2021
a917528
Test budget allocation
May 28, 2021
01c382e
test liquidity mining skew
May 28, 2021
4efd4b9
(feat) add better type hinting to StrategyPyBase and StrategyBase
May 29, 2021
7ca3373
(feat) add StrategyPyBase unit tests
May 31, 2021
f1b64cb
(fix) sort order book diff message and send pong when asked
Nullably May 31, 2021
ee81d5d
Merge pull request #3356 from CoinAlpha/refactor/dev_strategies_to_py…
CrimsonJacket May 31, 2021
b72e4a9
(feat) add StrategyBase unit tests
May 31, 2021
34cc7a7
Test volatility
May 31, 2021
1919c83
Clean up
May 31, 2021
acd0ea4
Merge branch 'refactor/unit_tests' of ssh://github.com/CoinAlpha/humm…
May 31, 2021
71a8321
Try fixing compile error
May 31, 2021
e8f7ddb
Found this issue
May 31, 2021
badae8b
Merge branch 'development' of https://github.com/CoinAlpha/hummingbot…
vic-en May 31, 2021
ad9817d
Fix to stop the live status command once the strategy is no longer ru…
aarmoa May 31, 2021
0b01e7d
(fix) add ExchangePyBase st c_quantize_order_amount is rounted proper…
Nullably Jun 1, 2021
6581d57
(fix) add unit testing on quantize_value function
Nullably Jun 1, 2021
f18a3df
(fix) minor edit
Nullably Jun 1, 2021
09bc567
Merge pull request #3468 from CoinAlpha/fix/stop_while_live_status_ac…
dennisocana Jun 1, 2021
4dbb5fc
Merge branch 'development' into fix/ascend_ex_unsynced_order_book
dennisocana Jun 1, 2021
61ddabf
Merge pull request #3464 from CoinAlpha/fix/ascend_ex_unsynced_order_…
dennisocana Jun 1, 2021
e4dd267
add gateway command and also refactor generate-certs command as an op…
vic-en Jun 1, 2021
623095e
Merge branch 'development' of https://github.com/CoinAlpha/hummingbot…
vic-en Jun 1, 2021
6a17dda
Merge pull request #3322 from CoinAlpha/feat/uniswap_v3
dennisocana Jun 1, 2021
20b91ba
(fix) fix strategy delay in AscendEx and CoinZoom
Jun 1, 2021
b35ab31
Update code comments
Jun 1, 2021
9e8c8e9
Target specific volatility
Jun 1, 2021
3219d87
uodate gateway command
vic-en Jun 1, 2021
e4e2981
global config cleanup 1
vic-en Jun 1, 2021
0bbbc50
Merge branch 'development' of https://github.com/CoinAlpha/hummingbot…
vic-en Jun 1, 2021
bbdc60c
update globla template
vic-en Jun 1, 2021
b9c58a9
Fix in the creation of the temp directory for the tests. Also change …
aarmoa Jun 1, 2021
13a9906
Test orders
Jun 1, 2021
9f637f0
Merge branch 'development' into refactor/unit_tests
aarmoa Jun 1, 2021
6578ea4
Merge branch 'development' into fix/ascend_ex_quantize_order_amount
Nullably Jun 1, 2021
a833e94
Fix issue in test_volatility
Jun 1, 2021
800e422
Merge pull request #3473 from CoinAlpha/fix/ascend_ex_quantize_order_…
dennisocana Jun 1, 2021
9790822
Merge branch 'refactor/unit_tests' into feat/unit_tests_for_strat_bas…
CrimsonJacket Jun 1, 2021
c9e773b
Merge pull request #3436 from CoinAlpha/feat/unit_tests_for_strat_bas…
dennisocana Jun 1, 2021
72256ca
Merge pull request #3476 from CoinAlpha/fix/certificate_unit_tests
aarmoa Jun 1, 2021
10eca21
(fix) fix race condition on self._poll_notifier in AscendEx and CoinZoom
Jun 1, 2021
5a328d8
Add coverage checks to github workflow
aarmoa Jun 1, 2021
75220fc
Fix in a step name
aarmoa Jun 1, 2021
70706ed
Add new make command to make it easy for the developer to generate th…
aarmoa Jun 1, 2021
1b4f318
Merge branch 'development' into fix/delay_starting_strategy
CrimsonJacket Jun 2, 2021
69664e5
Merge pull request #3440 from CoinAlpha/refactor/unit_tests-liquidity…
dennisocana Jun 2, 2021
6561fe9
Merge branch 'development' into fix/arbitrage-buy-sell-mixup
dennisocana Jun 2, 2021
90dd0ff
Merge branch 'development' into refactor/unit_tests
dennisocana Jun 2, 2021
3910b2e
Merge branch 'development' into fix/live_status_unwanted_messages
Nullably Jun 2, 2021
a7f46b4
Merge branch 'development' into feat/script_command_and_shortcuts
Nullably Jun 2, 2021
0740a3c
Add coverage and diff-cover to conda environment YML files as depende…
aarmoa Jun 2, 2021
bd57673
Update environment-linux.yml
aarmoa Jun 2, 2021
a5fce73
Update environment-win64.yml
aarmoa Jun 2, 2021
33e9d72
Update environment.yml
aarmoa Jun 2, 2021
8409caa
Merge pull request #2982 from zappra/feat/script_command_and_shortcuts
dennisocana Jun 3, 2021
16f2896
Merge branch 'development' into fix/live_status_unwanted_messages
dennisocana Jun 3, 2021
86505ee
(fix) address _poll_notifier not being re-initialized when an error i…
Jun 3, 2021
fbd4636
Merge pull request #3080 from zappra/fix/live_status_unwanted_messages
dennisocana Jun 3, 2021
df50ecd
Merge pull request #3479 from CoinAlpha/feat/coverage_checks
dennisocana Jun 3, 2021
123c9c4
Merge branch 'development' into fix/arbitrage-buy-sell-mixup
dennisocana Jun 3, 2021
e752df5
Merge pull request #3158 from shankinson/fix/arbitrage-buy-sell-mixup
dennisocana Jun 3, 2021
ad9dc4d
Merge branch 'development' into feat/gateway_configuration
Nullably Jun 3, 2021
b356f01
pass correct values to gateway
vic-en Jun 3, 2021
e907172
cleanup balancer max_swaps
vic-en Jun 3, 2021
a30b673
Merge branch 'development' of https://github.com/CoinAlpha/hummingbot…
vic-en Jun 3, 2021
d82fd2e
Merge branch 'feat/gateway_configuration' of https://github.com/CoinA…
vic-en Jun 3, 2021
5a0a6be
Revert "Add coverage checks to github workflow"
dennisocana Jun 3, 2021
d3254a7
Merge pull request #3486 from CoinAlpha/revert-3479-feat/coverage_checks
dennisocana Jun 3, 2021
99cc5f8
Merge branch 'development' into refactor/unit_tests
dennisocana Jun 3, 2021
741d2e0
fix check to prevent updating unavailable gateway configs
vic-en Jun 3, 2021
f51419d
Dummy change to reactivate the branch and make it possible to recreat…
aarmoa Jun 3, 2021
5974837
Dummy change to reactivate the branch and make it possible to recreat…
aarmoa Jun 3, 2021
282722b
Merge branch 'feat/coverage_checks' of https://github.com/CoinAlpha/h…
aarmoa Jun 3, 2021
290a0cc
(refactor) add small wait time for the server to be ready
Nullably Jun 3, 2021
df8d12c
Merge branch 'development' into fix/delay_starting_strategy
dennisocana Jun 3, 2021
676adef
Merge branch 'development' into feat/catch_script_import_errors
nicolasbaum Jun 3, 2021
37de37f
Merge pull request #3474 from CoinAlpha/fix/delay_starting_strategy
dennisocana Jun 3, 2021
cd3091a
Merge branch 'development' into refactor/unit_tests
aarmoa Jun 3, 2021
abdd47b
Adding back required changes in YML setup files lost when Dennis reve…
aarmoa Jun 3, 2021
ddd760b
Add possibility to use rate oracle as provider of rates to calculate …
aarmoa Jun 3, 2021
1818fcd
Add possibility to use rate oracle as provider of rates to calculate …
aarmoa Jun 3, 2021
6a7e4e5
Merge branch 'feat/add_rate_oracle_to_amm_arb' of https://github.com/…
aarmoa Jun 3, 2021
fe2f1b5
Merge pull request #3489 from CoinAlpha/refactor/fix_mock_ws_test
Nullably Jun 4, 2021
15b5741
Merge branch 'development' into feat/catch_script_import_errors
dennisocana Jun 4, 2021
f15a7fe
Merge pull request #3018 from zappra/feat/catch_script_import_errors
dennisocana Jun 4, 2021
7c7e22f
(fix) fix get_snapshot() error in KuCoinAPIOrderBookDataSource
Jun 4, 2021
9122e32
Add conversion in order calculation to consider different orders of m…
aarmoa Jun 4, 2021
824ca57
Merge branch 'development' into feat/add_rate_oracle_to_amm_arb
aarmoa Jun 4, 2021
48d61d8
Add possibility to use rate oracle as provider of rates to calculate …
aarmoa Jun 3, 2021
794ef26
Add conversion in order calculation to consider different orders of m…
aarmoa Jun 4, 2021
95acb75
Merge branch 'feat/add_rate_oracle_to_amm_arb' of https://github.com/…
aarmoa Jun 4, 2021
1d8fedd
Merge pull request #3488 from CoinAlpha/feat/coverage_checks
aarmoa Jun 4, 2021
329daa0
Merge branch 'development' into refactor/unit_tests
aarmoa Jun 4, 2021
2e006b1
Configure changes coverage check to run only for PRs
aarmoa Jun 4, 2021
6bcaa30
Merge pull request #3508 from CoinAlpha/fix/validate_change_coverage_…
aarmoa Jun 4, 2021
76ff190
Merge branch 'development' into fix/kucoin_get_order_book_snapshot_error
dennisocana Jun 4, 2021
68fed6d
Merge pull request #3506 from CoinAlpha/fix/kucoin_get_order_book_sna…
dennisocana Jun 4, 2021
cd50a09
Merge branch 'development' into refactor/unit_tests
aarmoa Jun 4, 2021
27ed147
update script to create gateway docker instance
vic-en Jun 5, 2021
1e93a8d
update gateway docker script to save contract address as string in ym…
vic-en Jun 5, 2021
6a4abbb
Merge pull request #3446 from CoinAlpha/refactor/unit_tests
dennisocana Jun 7, 2021
325bd67
Merge branch 'development' into feat/gateway_configuration
dennisocana Jun 7, 2021
71ab2a4
Merge branch 'development' into refactor/xemm_config_template
dennisocana Jun 7, 2021
5dd2d73
(refactor) update connector status in Hummingbot client
Jun 7, 2021
d2634a0
Merge pull request #3530 from CoinAlpha/client-connector-status
dennisocana Jun 7, 2021
a0e63a4
Add make file action to run all tests calculating coverage and genera…
aarmoa Jun 7, 2021
fc76d23
Merge branch 'development' into feat/add_make_action_for_coverage
aarmoa Jun 7, 2021
5f040c6
Change checkout during PRs to avoid detached HEAD
aarmoa Jun 7, 2021
ba0636e
Add comment
aarmoa Jun 7, 2021
9788f39
Fix indentation error ini yml file
aarmoa Jun 7, 2021
9a5c114
Change in changes difference step to create a branch from current che…
aarmoa Jun 7, 2021
3483f8f
Merge pull request #3531 from CoinAlpha/feat/add_make_action_for_cove…
dennisocana Jun 7, 2021
df7c5ec
readme update connector status
Jun 7, 2021
81b0e8d
Merge branch 'development' into doc/readme_update_connector_status
ralphemersonic Jun 7, 2021
e8b1c39
Merge pull request #3534 from CoinAlpha/doc/readme_update_connector_s…
dennisocana Jun 7, 2021
a387cd6
Merge branch 'development' into fix/fork_pr_coverage_check
aarmoa Jun 7, 2021
b99a6da
Remove dummy comments added to test the workflow
aarmoa Jun 7, 2021
dbdcf4c
Merge branch 'fix/fork_pr_coverage_check' of https://github.com/aarmo…
aarmoa Jun 7, 2021
673ccd6
Merge pull request #3532 from aarmoa/fix/fork_pr_coverage_check
aarmoa Jun 7, 2021
33b9362
Merge branch 'development' into refactor/xemm_config_template
aarmoa Jun 7, 2021
9ce6269
Merge branch 'development' into feat/add_rate_oracle_to_amm_arb
aarmoa Jun 7, 2021
386f759
add dummy test cases
vic-en Jun 7, 2021
e10892a
Merge branch 'feat/gateway_configuration' of https://github.com/CoinA…
vic-en Jun 7, 2021
85720df
Merge pull request #3410 from glenntomas/refactor/xemm_config_template
dennisocana Jun 8, 2021
4418baa
Merge branch 'development' into feat/gateway_configuration
dennisocana Jun 8, 2021
e9b2e27
(fix) remove unit test code converage requirment for now as it's intr…
Nullably Jun 8, 2021
49c101c
Merge pull request #3536 from CoinAlpha/fix/remove_code_coverage_requ…
dennisocana Jun 8, 2021
0130cfb
Merge branch 'development' into feat/gateway_configuration
dennisocana Jun 8, 2021
9b40957
Merge pull request #3475 from CoinAlpha/feat/gateway_configuration
dennisocana Jun 8, 2021
b2c206a
Merge pull request #3533 from CoinAlpha/development
dennisocana Jun 8, 2021
801f04f
(fix) add await and report error details in log file
Nullably Jun 8, 2021
073059e
Merge pull request #3538 from CoinAlpha/fix/ethereum_fetch_pairs_error
dennisocana Jun 8, 2021
77399f9
Merge pull request #3539 from CoinAlpha/development
dennisocana Jun 8, 2021
3e58421
Merge branch 'development' of https://github.com/CoinAlpha/hummingbot…
aarmoa Jun 8, 2021
bd1e5cc
Add warning log when profitability can't be calculated due to missing…
aarmoa Jun 8, 2021
161298f
Change profitability status description to use the correct rate sourc…
aarmoa Jun 8, 2021
6292961
Add timeout to test_web_app_response because it is breaking in Github…
aarmoa Jun 8, 2021
fbfa2e1
(feat) remove unintended code update
Nullably Jun 9, 2021
f32d3a5
Merge pull request #3492 from CoinAlpha/feat/add_rate_oracle_to_amm_arb
dennisocana Jun 9, 2021
6ed9b39
Merge pull request #3548 from CoinAlpha/development
dennisocana Jun 9, 2021
5a04180
update smart round funtion in uniswap v3 lp strategy
vic-en Jun 10, 2021
355fc29
Merge pull request #3564 from CoinAlpha/fix/update_smart_round_in_uV3…
dennisocana Jun 14, 2021
0b8be93
(refactor) remove jenkins in readme and jenkins test
glenntomas Jun 14, 2021
b54a584
(refactor) remove jenkins test
glenntomas Jun 14, 2021
6434e91
Merge pull request #3575 from CoinAlpha/refactor/remove_jenkins
dennisocana Jun 14, 2021
08de4be
(release) update to 0.40.0
dennisocana Jun 16, 2021
639ec24
(release) version 0.40.0 release date
dennisocana Jun 16, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixed edge case when there's no balance and greek parametrs are not c…
…alcualted
  • Loading branch information
nicolasbaum committed May 23, 2021
commit 21ee66a6a527a67e29bb5d2c6983b21463be1238
Original file line number Diff line number Diff line change
Expand Up @@ -505,35 +505,36 @@ cdef class AvellanedaMarketMakingStrategy(StrategyBase):
vol = self.get_volatility()
mid_price_variance = vol ** 2

self._reserved_price = price - (q * self._gamma * mid_price_variance * time_left_fraction)
self._optimal_spread = self._gamma * mid_price_variance * time_left_fraction + 2 * Decimal(
1 + self._gamma / self._kappa).ln() / self._gamma

if self._parameters_based_on_spread:
spread_inflation_due_to_volatility = max(self._vol_to_spread_multiplier * vol,
price * self._min_spread) / (price * self._min_spread)
min_limit_bid = price * (1 - self._max_spread * spread_inflation_due_to_volatility)
max_limit_bid = price * (1 - self._min_spread * spread_inflation_due_to_volatility)
min_limit_ask = price * (1 + self._min_spread * spread_inflation_due_to_volatility)
max_limit_ask = price * (1 + self._max_spread * spread_inflation_due_to_volatility)
else:
min_limit_bid = s_decimal_zero
max_limit_bid = min_limit_ask = price
max_limit_ask = Decimal("Inf")

self._optimal_ask = min(max(self._reserved_price + self._optimal_spread / 2,
min_limit_ask),
max_limit_ask)
self._optimal_bid = min(max(self._reserved_price - self._optimal_spread / 2,
min_limit_bid),
max_limit_bid)
# This is not what the algorithm will use as proposed bid and ask. This is just the raw output.
# Optimal bid and optimal ask prices will be used
if self._is_debug:
self.logger().info(f"bid={(price-(self._reserved_price - self._optimal_spread / 2)) / price * 100:.4f}% | "
f"ask={((self._reserved_price + self._optimal_spread / 2) - price) / price * 100:.4f}% | "
f"q={q/self._q_adjustment_factor:.4f} | "
f"vol={vol:.4f}")
if all((q, self._gamma, self._kappa)):
self._reserved_price = price - (q * self._gamma * mid_price_variance * time_left_fraction)
self._optimal_spread = self._gamma * mid_price_variance * time_left_fraction + 2 * Decimal(
1 + self._gamma / self._kappa).ln() / self._gamma

if self._parameters_based_on_spread:
spread_inflation_due_to_volatility = max(self._vol_to_spread_multiplier * vol,
price * self._min_spread) / (price * self._min_spread)
min_limit_bid = price * (1 - self._max_spread * spread_inflation_due_to_volatility)
max_limit_bid = price * (1 - self._min_spread * spread_inflation_due_to_volatility)
min_limit_ask = price * (1 + self._min_spread * spread_inflation_due_to_volatility)
max_limit_ask = price * (1 + self._max_spread * spread_inflation_due_to_volatility)
else:
min_limit_bid = s_decimal_zero
max_limit_bid = min_limit_ask = price
max_limit_ask = Decimal("Inf")

self._optimal_ask = min(max(self._reserved_price + self._optimal_spread / 2,
min_limit_ask),
max_limit_ask)
self._optimal_bid = min(max(self._reserved_price - self._optimal_spread / 2,
min_limit_bid),
max_limit_bid)
# This is not what the algorithm will use as proposed bid and ask. This is just the raw output.
# Optimal bid and optimal ask prices will be used
if self._is_debug:
self.logger().info(f"bid={(price-(self._reserved_price - self._optimal_spread / 2)) / price * 100:.4f}% | "
f"ask={((self._reserved_price + self._optimal_spread / 2) - price) / price * 100:.4f}% | "
f"q={q/self._q_adjustment_factor:.4f} | "
f"vol={vol:.4f}")

cdef object c_calculate_target_inventory(self):
cdef:
Expand Down