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

sync / staging -> master for Hummingbot version 1.12.0 #6027

Merged
merged 339 commits into from
Jan 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
339 commits
Select commit Hold shift + click to select a range
60d7e62
Use instance_id from global config for constructing URIs
klpanagi Nov 14, 2022
ab541eb
Bridge logs globally - patch HummingbotLogger class
klpanagi Nov 15, 2022
34189fa
Rename mqtt_broker to mqtt_bridge
klpanagi Nov 15, 2022
37913b5
Documentation
klpanagi Dec 10, 2022
6a38417
Merge branch 'development' into feat/cosmos-chain
webston Dec 11, 2022
fd0e4c9
Display instance_id in global config
klpanagi Dec 11, 2022
1944bac
Documentation
klpanagi Dec 11, 2022
ae5cf22
(fix) failing gateway build workflow
webston Dec 12, 2022
a6d1113
(refactor) merge branch development and resolve conflicts
webston Dec 12, 2022
5bb38bf
(fix) add wallet tests for cosmos chain
webston Dec 12, 2022
5ff8404
Documentation
klpanagi Dec 12, 2022
9624923
Update MQTT related documentation
klpanagi Dec 13, 2022
ea50045
Define communication messages using pydantic backend
klpanagi Dec 13, 2022
9386d2e
Move communication messages into a separate file
klpanagi Dec 13, 2022
4d01830
Update MQTT docs
klpanagi Dec 13, 2022
06d867e
(fix) fix cosmos chain network selecting
webston Dec 13, 2022
781bb7f
(fix) fix cosmos chain network selecting
webston Dec 13, 2022
dbb7960
(fix) fix cosmos chain network selecting
webston Dec 13, 2022
f232ac8
Merge branch 'development' into feat/bot_orchestration
rapcmia Dec 13, 2022
afa6f67
Merge branch 'development' into feat/cosmos-chain
webston Dec 13, 2022
9635c38
Merge branch 'development' into feat/bot_orchestration
rapcmia Dec 15, 2022
c86caf6
Merge branch 'development' into feat/bot_orchestration
nikspz Dec 15, 2022
c5deb14
(feat) initial push for ciex connector integration
CrimsonJacket Dec 19, 2022
6ad463e
Merge branch 'development' into feat/add_ciex_connector
CrimsonJacket Dec 19, 2022
9027318
Merge branch 'development' into feat/bot_orchestration
nikspz Dec 19, 2022
c953687
Merge branch 'development' into feat/cosmos-chain
webston Dec 20, 2022
2062f2c
(fix/test) addressed outstanding issues with ci-ex integration
CrimsonJacket Dec 20, 2022
2e39f31
(fix) update WSS URL for CI-EX
CrimsonJacket Dec 20, 2022
5a2bbc5
Fixes noqa F401 for CI
klpanagi Dec 20, 2022
0aea939
Adds dependencies for all setup environments
klpanagi Dec 20, 2022
94291f1
Adding gateway script examples.
Faouzijedidi1 Dec 20, 2022
f52bc26
Fixes local deployment of RabbitMQ broker
klpanagi Dec 20, 2022
9f0fcf8
Allow setting instance_id via prompt
klpanagi Dec 20, 2022
7db584f
Changes config command test to adopt to the mqtt parameters
klpanagi Dec 20, 2022
ca4fd3b
Config command test fix by RogerThat
klpanagi Dec 20, 2022
ba8ae21
(fix) fix tick function to not use last_recv_time when user_stream_tr…
CrimsonJacket Dec 21, 2022
ef4168e
Merge branch 'development' into feat/bot_orchestration
nikspz Dec 21, 2022
2686457
Restore removed prefix attribute
klpanagi Dec 21, 2022
99f9881
update dev version to dev-1.12
rapcmia Dec 22, 2022
f1887b0
Merge pull request #5974 from hummingbot/change_dev_version
JeremyKono Dec 22, 2022
ed8dff1
Merge branch 'development' into feat/bot_orchestration
rapcmia Dec 22, 2022
6ea2089
Remove headless executor - Will reimplement on future PR
klpanagi Dec 22, 2022
ab7471c
Remove brokers directory - Moved to a different repo
klpanagi Dec 22, 2022
313c221
(fix) address PR comments
CrimsonJacket Dec 22, 2022
3cff815
Start work on tests
TheHolyRoger Dec 23, 2022
3abe3b2
Add a few more tests
TheHolyRoger Dec 23, 2022
94fc85e
Add events tests
TheHolyRoger Dec 23, 2022
03dc711
Merge pull request #1 from TheHolyRoger/feat/bot_orchestration
klpanagi Dec 23, 2022
d23c804
Fix closed event loop and improve tests
TheHolyRoger Dec 23, 2022
49209e4
Merge pull request #2 from TheHolyRoger/fix/bot_orchestration_1
klpanagi Dec 23, 2022
a053860
Fix issue with history command and trades, more unit tests
TheHolyRoger Dec 23, 2022
58cae42
Tidy up for better coverage
TheHolyRoger Dec 23, 2022
de45398
Couple more unit tests
TheHolyRoger Dec 23, 2022
01bbb1c
Merge pull request #3 from TheHolyRoger/fix/bot_orchestration_2
klpanagi Dec 23, 2022
d12a0a2
Unit test fixes
TheHolyRoger Dec 23, 2022
fb29d3c
Fix logger test
TheHolyRoger Dec 23, 2022
e97573b
Type checking
TheHolyRoger Dec 23, 2022
27f53bc
Merge pull request #5 from TheHolyRoger/fix/bot_orchestration_3
klpanagi Dec 23, 2022
88dbe99
Fixes as per review
TheHolyRoger Dec 24, 2022
417beac
Merge pull request #6 from TheHolyRoger/fix/bot_orchestration_4
klpanagi Dec 24, 2022
7edd5a0
(refactor) Create&updates Binance perpetual to the latest standards
Dec 26, 2022
5737d24
format code
Dec 26, 2022
aadaa70
add unittest
Dec 26, 2022
8c5ac8c
format code
Dec 26, 2022
b3ce05b
Catch mqtt disconnection error and inform user
klpanagi Dec 26, 2022
b7c2256
Improve mqtt disconnection handling
klpanagi Dec 26, 2022
8a03875
Cover 100% of mqtt components
klpanagi Dec 26, 2022
54c0bb4
(fix) fix price source feature set up
cardosofede Dec 26, 2022
0e743f0
add more unittest
Dec 27, 2022
a928012
add more unittest
Dec 27, 2022
289408e
add more unittest
Dec 27, 2022
5f0612c
add more unittest
Dec 27, 2022
86d02c0
add more unittest
Dec 27, 2022
792f9fb
Add approve-tokens initial command
Faouzijedidi1 Dec 27, 2022
49e87a5
Updates commlib-py to the latest version
klpanagi Dec 27, 2022
5533b85
Adds mqtt_stop command
klpanagi Dec 27, 2022
5b2770a
Improve check_health method for future extensions.
klpanagi Dec 27, 2022
7820115
Fixes failing tests from last improvements in core mqtt sources
klpanagi Dec 27, 2022
fc6fc01
Work on mqtt_namespace
klpanagi Dec 29, 2022
d0277f3
Fixes mqtt logging behaviour on mqtt restarts
klpanagi Dec 29, 2022
acaa09c
Expose a single method to start the MQTTGateway
klpanagi Dec 29, 2022
76918d1
Update config command tests for mqtt changes (mqtt_namespace)
klpanagi Dec 29, 2022
e8f7a06
Updates MQTT tests
klpanagi Dec 29, 2022
840faba
Updates commlib commit hash
klpanagi Dec 29, 2022
8074420
Updates commlib-py commit once again
klpanagi Dec 29, 2022
bf3f30b
Merge branch 'development' into feat/add_ciex_connector
CrimsonJacket Dec 30, 2022
1dcb753
mqtt logging fixes via python logger propagation
klpanagi Dec 30, 2022
7bf0fdf
mqtt logging without progagation
klpanagi Dec 30, 2022
17da096
Improve mqtt logging
klpanagi Dec 30, 2022
9bfc55f
noqa F401 in start_command
klpanagi Dec 30, 2022
b5af0c8
Handle missing logs conf file - crash in tests
klpanagi Dec 30, 2022
852b5e2
Fix whitespace changes
TheHolyRoger Dec 31, 2022
8204aaa
Add command shortcuts to MQT
TheHolyRoger Dec 31, 2022
9789be9
Fixes gateway port calculation from bot instance_id to work with not …
klpanagi Jan 1, 2023
c74c639
add infomration to status. fix position name, fix typing errors
leastchaos Jan 2, 2023
24d8040
add more logging info
leastchaos Jan 2, 2023
41bc1d9
minor
leastchaos Jan 2, 2023
fdf5afc
Add command shortcuts tests
TheHolyRoger Jan 2, 2023
369381b
Add to MQTT health check test
TheHolyRoger Jan 2, 2023
c0cfc75
Merge pull request #5658 from pecuniafinance/feat/cosmos-chain
rapcmia Jan 2, 2023
0930189
Remove auto approval from gateway_evm_amm
Faouzijedidi1 Jan 2, 2023
4f1b961
Merge branch 'development' into feat/remove_auto_approve
Faouzijedidi1 Jan 2, 2023
c7dfde7
Merge pull request #7 from TheHolyRoger/feat/bot_orchestration_shortcuts
klpanagi Jan 2, 2023
94534f3
Merge branch 'development' into fix/duration_time
rapcmia Jan 2, 2023
2f1d6e5
Fix MQTT import command
TheHolyRoger Jan 2, 2023
8811988
Merge pull request #8 from TheHolyRoger/fix/fix_mqtt_import
klpanagi Jan 2, 2023
51be0ae
Merge branch 'development' into feat/add_ciex_connector
aarmoa Jan 2, 2023
42ba22d
Merge branch 'development' into feat/bot_orchestration
rapcmia Jan 3, 2023
7bfc58d
added more logs
leastchaos Jan 3, 2023
ec939eb
match asset instead of trading_pair
leastchaos Jan 3, 2023
9b87d81
remove excess logs
leastchaos Jan 3, 2023
a9c2ecc
add warning for mrket prompt
leastchaos Jan 3, 2023
8ebe435
Threadsafe guard
klpanagi Jan 3, 2023
cd06d92
Fixes async comamnd execution from sync callbacks
klpanagi Jan 3, 2023
814f2ad
change to use midprice instead of vwap price
leastchaos Jan 4, 2023
26b778f
Threadsafe guards for MQTTLogHandler and MQTTCommands
klpanagi Jan 4, 2023
422e6c7
Temporary solution for import and status tests
klpanagi Jan 4, 2023
417f240
Merge branch 'development' into feat/binance_perpetual_derivative
rapcmia Jan 4, 2023
3ff6550
Merge branch 'development' into fix/custom_api_pmm
rapcmia Jan 4, 2023
66dced4
Fixes import command crashing prompt when given file_name is wrong + …
klpanagi Jan 4, 2023
bab2e78
fix tests
leastchaos Jan 4, 2023
fd526a5
Restore faulty commented out line that patches loggers
klpanagi Jan 4, 2023
0d9f2ef
Merge branch 'development' into add-logs-to-hedge
leastchaos Jan 4, 2023
4a05888
Type checking avoid flake8 F401
klpanagi Jan 4, 2023
5c52a98
Add approve tokens command
Faouzijedidi1 Jan 4, 2023
89c1ddd
Merge branch 'development' of https://github.com/hummingbot/hummingbo…
Jan 5, 2023
5858d56
Merge branch 'feat/binance_perpetual_derivative' of github.com:yancon…
Jan 5, 2023
2112d84
Restore missing _ev_loop attribute of MQTTNotifier
klpanagi Jan 5, 2023
0dadd3f
update to the latest standards
Jan 5, 2023
7e27d6e
update to the latest standards
Jan 5, 2023
497c8de
update to the latest standards
Jan 5, 2023
0c725e7
add logs
leastchaos Jan 6, 2023
cb879d2
Merge pull request #5999 from klpanagi/fix/import_wrong_file_name
rapcmia Jan 6, 2023
d48ecd9
Merge branch 'development' into feat/remove_auto_approve
rapcmia Jan 6, 2023
0a9120f
Merge branch 'development' into feat/bot_orchestration
rapcmia Jan 6, 2023
022be30
Merge branch 'development' into feat/binance_perpetual_derivative
rapcmia Jan 6, 2023
7d68fe1
Merge pull request #5997 from hummingbot/feat/remove_auto_approve
fengtality Jan 6, 2023
e843cb6
Merge branch 'development' into feat/add_ciex_connector
CrimsonJacket Jan 6, 2023
6d58142
Merge mqtt start and stop commands into a single command with subcomm…
klpanagi Jan 7, 2023
f6c5aab
Merge remote-tracking branch 'origin/feat/bot_orchestration' into fea…
klpanagi Jan 7, 2023
4021704
Use new mqtt command with mqtt_autostart option
klpanagi Jan 7, 2023
e383cbd
Provide an mqtt subcommand to restart the bridge
klpanagi Jan 8, 2023
27e2a8d
Merge pull request #11 from klpanagi/feat/bot_orchestration_mqtt_rest…
klpanagi Jan 8, 2023
18dbcac
Do not patch loggers with MQTT handler in tests
klpanagi Jan 8, 2023
359d3a8
Run a health monitoring coroutine in backend loop
klpanagi Jan 8, 2023
df2f23c
Raise mqtt start timeout to 30 seconds for autostart to work with slo…
klpanagi Jan 8, 2023
6edd7df
Merge pull request #12 from klpanagi/feat/bot_orchestration_tests_pat…
klpanagi Jan 8, 2023
5b642d2
Merge remote-tracking branch 'origin/feat/bot_orchestration' into fea…
klpanagi Jan 8, 2023
bc28261
Enhance market event publisher
klpanagi Jan 8, 2023
75bdd5b
Enhance market event publisher
klpanagi Jan 8, 2023
dadea51
Minors in mqtt gateway
klpanagi Jan 8, 2023
80a3da0
Merge pull request #13 from klpanagi/feat/bot_orchestration_bridge_in…
klpanagi Jan 8, 2023
7748375
Merge branch 'development' into feat/binance_perpetual_derivative
rapcmia Jan 9, 2023
7e4623b
Merge pull request #5959 from CoinAlpha/feat/add_ciex_connector
JeremyKono Jan 9, 2023
49cd2c7
Merge branch 'development' into feat/binance_perpetual_derivative
nikspz Jan 9, 2023
334ca0c
Merge branch 'development' into feat/bot_orchestration
rapcmia Jan 9, 2023
e95ca29
Code improvements
klpanagi Jan 9, 2023
c616a2f
Changes to the approve-tokens command
Faouzijedidi1 Jan 9, 2023
329566f
Revert "Adding gateway script examples."
Faouzijedidi1 Jan 9, 2023
e2c8877
Code improvements
klpanagi Jan 9, 2023
fdeaa22
tests for coverage
klpanagi Jan 9, 2023
8248b18
Merge pull request #5976 from yancong001/feat/binance_perpetual_deriv…
rapcmia Jan 10, 2023
0fdcc7c
Optimize call_sync function for performance
klpanagi Jan 10, 2023
3986cce
Code improvements for status and import commands
klpanagi Jan 10, 2023
d8ddc48
Option for async and sync call for status command
klpanagi Jan 10, 2023
3513ef6
Adds preliminary checks in start command + async backend option
klpanagi Jan 10, 2023
fcc6a38
Async backend option for stop command
klpanagi Jan 10, 2023
6292da7
Async backend option for import command
klpanagi Jan 10, 2023
533696d
updating approve-tokens command
Faouzijedidi1 Jan 10, 2023
9a76a98
Merge pull request #15 from klpanagi/feat/bot_orchestration_code_impr…
klpanagi Jan 10, 2023
53d5951
Merge branch 'development' into feat/bot_orchestration
rapcmia Jan 11, 2023
8350eed
Merge branch 'master' into feat/approve_tokens_changes
Faouzijedidi1 Jan 11, 2023
501d028
Merge branch 'development' into feat/approve_tokens_changes
Faouzijedidi1 Jan 11, 2023
836833a
Merge branch 'development' into fix/pmm-duplicated-property
rapcmia Jan 11, 2023
ba730b5
Update approve-tokens command
Faouzijedidi1 Jan 11, 2023
7158695
Merge pull request #4922 from takuya29/fix/pmm-duplicated-property
nikspz Jan 11, 2023
cd603bf
Merge branch 'development' into fix/duration_time
rapcmia Jan 12, 2023
ba8a7d7
Merge branch 'development' into fix/custom_api_pmm
nikspz Jan 12, 2023
959766a
Remove suspend and restore feature from start and exit commands respe…
klpanagi Jan 12, 2023
78086d3
Type checking noqa F401
klpanagi Jan 12, 2023
ce90416
Merge branch 'development' into feat/approve_tokens_changes
Faouzijedidi1 Jan 12, 2023
81db81f
minor fix
Faouzijedidi1 Jan 12, 2023
ba52941
Merge branch 'development' into feat/remove_pause_resume
rapcmia Jan 13, 2023
6775c85
Merge branch 'development' into feat/bot_orchestration
rapcmia Jan 13, 2023
618de30
(fix) Gate.io delay updating total balance by reverting 3af671f 6d8ce…
supervik Jan 13, 2023
e8b0f69
Merge branch 'development' into fix/gate_io_delay_updating_total_balance
nikspz Jan 13, 2023
424b208
Merge pull request #5982 from cardosofede/fix/custom_api_pmm
nikspz Jan 13, 2023
11eaa7d
Merge branch 'development' into feat/remove_pause_resume
nikspz Jan 13, 2023
7c40eeb
Revert changes to the exit command - restore force exit flag
klpanagi Jan 13, 2023
38cd7b7
Adds mqtt command completer
klpanagi Jan 13, 2023
b1140b8
Restore --force flag in exit command
klpanagi Jan 13, 2023
358fcab
Merge pull request #16 from klpanagi/feat/bot_orchestration_mqtt_cmd_…
klpanagi Jan 13, 2023
c3e469f
Refactor mqtt command with proper subparsers for subcommads
klpanagi Jan 13, 2023
4456ea2
Merge pull request #17 from klpanagi/feat/bot_orchestration_mqtt_cmd_…
klpanagi Jan 13, 2023
664bbd9
Merge branch 'development' into fix/duration_time
nikspz Jan 13, 2023
4d0a4a1
Merge branch 'development' into fix/gate_io_delay_updating_total_balance
nikspz Jan 14, 2023
dffc230
Merge branch 'development' into feat/bot_orchestration
rapcmia Jan 16, 2023
1994dc6
Merge branch 'development' into feat/approve_tokens_changes
rapcmia Jan 16, 2023
0f6c017
(fix) Duration display from the Humming bottom status and make it loo…
theomaniac Jul 14, 2022
1a8355d
Merge branch 'development' into add-logs-to-hedge
leastchaos Jan 17, 2023
1e0f12d
add btc.b to avalanche tokenlist
Faouzijedidi1 Jan 17, 2023
d4639a8
Merge pull request #6008 from klpanagi/feat/remove_pause_resume
nikspz Jan 17, 2023
9b24c9e
Merge branch 'development' into feat/bot_orchestration
nikspz Jan 17, 2023
db5614c
Merge branch 'development' into add-logs-to-hedge
nikspz Jan 17, 2023
e6d934e
Merge branch 'development' into fix/gate_io_delay_updating_total_balance
nikspz Jan 17, 2023
ac5e78c
Merge branch 'development' into feat/approve_tokens_changes
cardosofede Jan 17, 2023
63f6d23
Merge pull request #6005 from hummingbot/feat/approve_tokens_changes
cardosofede Jan 17, 2023
b730eef
Merge branch 'development' into fix/add-tokens
cardosofede Jan 17, 2023
3b20c67
Merge pull request #6016 from hummingbot/fix/add-tokens
cardosofede Jan 17, 2023
6c7b0b3
Remove restore argument from start command - removed from hummingbot …
klpanagi Jan 17, 2023
f6a2461
Merge branch 'development' into add-logs-to-hedge
rapcmia Jan 18, 2023
e617098
Merge branch 'development' into feat/bot_orchestration
rapcmia Jan 18, 2023
1ffb1d0
Merge branch 'development' into fix/gate_io_delay_updating_total_balance
cardosofede Jan 18, 2023
2224845
Merge pull request #6011 from supervik/fix/gate_io_delay_updating_tot…
cardosofede Jan 18, 2023
5a2e16a
Merge branch 'development' into add-logs-to-hedge
rapcmia Jan 18, 2023
bb57555
Merge branch 'development' into feat/bot_orchestration
rapcmia Jan 18, 2023
9ef2624
Merge pull request #5996 from leastchaos/add-logs-to-hedge
rapcmia Jan 18, 2023
369ac50
Merge branch 'development' into fix/duration_time
nikspz Jan 18, 2023
74ad0c8
Merge branch 'development' into feat/bot_orchestration
nikspz Jan 18, 2023
3b240a2
Merge remote-tracking branch 'origin/fix/duration_time' into fix/dura…
theomaniac Jan 18, 2023
7174e05
Merge remote-tracking branch 'origin/fix/duration_time' into fix/dura…
theomaniac Jan 18, 2023
cbecf60
Merge remote-tracking branch 'origin/fix/duration_time' into fix/dura…
theomaniac Jan 18, 2023
72c7c6c
Merge remote-tracking branch 'origin/fix/duration_time' into fix/dura…
theomaniac Jan 18, 2023
4bb5fe3
Merge remote-tracking branch 'origin/fix/duration_time' into fix/dura…
theomaniac Jan 18, 2023
c91a983
Merge pull request #5499 from theomaniac/fix/duration_time
cardosofede Jan 18, 2023
24d8f8d
Merge pull request #5945 from klpanagi/feat/bot_orchestration
cardosofede Jan 18, 2023
50b4713
(feat) remove exchanges out of quorum
cardosofede Jan 18, 2023
34efc7d
(feat) change tiers of connectors and remove celo
cardosofede Jan 18, 2023
5566a04
(feat) add noqa to avoid test errors
cardosofede Jan 19, 2023
a740e6c
Merge branch 'development' into feat/cex_poll_changes
cardosofede Jan 19, 2023
63b9737
(feat) remove k2 and fix categories
cardosofede Jan 19, 2023
a6b113c
(feat) change colors and style for bronze silver and gold
cardosofede Jan 19, 2023
3a1e4c9
(feat) remove probit_kr
cardosofede Jan 19, 2023
3cefec6
(fix) test for color style
cardosofede Jan 19, 2023
442ce91
fix displayed error message
Faouzijedidi1 Jan 20, 2023
2c63474
updates dex poll changes and add gateway list
Faouzijedidi1 Jan 20, 2023
b46c698
(feat) restore k2
cardosofede Jan 20, 2023
26d2cdc
(feat) add k2 to connector status
cardosofede Jan 20, 2023
7874599
(feat) change Deque for deque
cardosofede Jan 20, 2023
c7c7982
(fix) space missing after keyword
cardosofede Jan 20, 2023
a29fc32
Merge pull request #6017 from cardosofede/feat/cex_poll_changes
rapcmia Jan 23, 2023
c90d6e1
Merge branch 'development' into feat/dex-poll-changes
Faouzijedidi1 Jan 23, 2023
ce30695
Update gateway_config_utils.py
Faouzijedidi1 Jan 23, 2023
463e488
Merge pull request #6022 from hummingbot/feat/dex-poll-changes
nikspz Jan 23, 2023
bef4ba6
Merge pull request #6025 from hummingbot/development
rapcmia Jan 24, 2023
0d579b4
updated version and setup.py
rapcmia Jan 24, 2023
a3e800f
Merge branch 'staging' into update-version-1.12.0
rapcmia Jan 24, 2023
0b95e88
Merge pull request #6028 from hummingbot/update-version-1.12.0
rapcmia Jan 24, 2023
8387ac2
adjust readme for poll changes
fengtality Jan 24, 2023
bfa5074
Merge pull request #6030 from hummingbot/change-readme
fengtality Jan 25, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 0 additions & 5 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,12 @@ omit =
hummingbot/connector/connector/uniswap_v3*
hummingbot/connector/derivative/perpetual_finance*
hummingbot/connector/derivative/position.py
hummingbot/connector/exchange/beaxy*
hummingbot/connector/exchange/bitfinex*
hummingbot/connector/exchange/coinbase_pro*
hummingbot/connector/exchange/digifinex*
hummingbot/connector/exchange/hitbtc*
hummingbot/connector/exchange/k2*
hummingbot/connector/exchange/liquid*
hummingbot/connector/exchange/loopring*
hummingbot/connector/exchange/paper_trade*
hummingbot/connector/exchange/probit*
hummingbot/connector/exchange/wazirx*
hummingbot/connector/gateway*
hummingbot/core/utils/gateway_config_utils.py
hummingbot/core/utils/kill_switch.py
Expand Down
11 changes: 0 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,6 @@ RUN curl https://repo.anaconda.com/miniconda/Miniconda3-py38_4.10.3-Linux-x86_64
# Dropping default ~/.bashrc because it will return if not running as interactive shell, thus not invoking PATH settings
RUN :> ~/.bashrc

# Install nvm and CeloCLI; note: nvm adds own section to ~/.bashrc
SHELL [ "/bin/bash", "-lc" ]
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash && \
export NVM_DIR="/home/hummingbot/.nvm" && \
source "/home/hummingbot/.nvm/nvm.sh" && \
nvm install 10 && \
npm install --only=production -g @celo/celocli@1.0.3 && \
nvm cache clear && \
npm cache clean --force && \
rm -rf /home/hummingbot/.cache

# Copy environment only to optimize build caching, so changes in sources will not cause conda env invalidation
COPY --chown=hummingbot:hummingbot setup/environment-linux.yml setup/

Expand Down
11 changes: 0 additions & 11 deletions Dockerfile.arm
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,6 @@ RUN curl https://repo.anaconda.com/miniconda/Miniconda3-py38_4.10.3-Linux-aarch6
# Dropping default ~/.bashrc because it will return if not running as interactive shell, thus not invoking PATH settings
RUN :> ~/.bashrc

# Install nvm and CeloCLI; note: nvm adds own section to ~/.bashrc
SHELL [ "/bin/bash", "-lc" ]
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash && \
export NVM_DIR="/home/hummingbot/.nvm" && \
source "/home/hummingbot/.nvm/nvm.sh" && \
nvm install 10 && \
npm install --only=production -g @celo/celocli@1.0.3 && \
nvm cache clear && \
npm cache clean --force && \
rm -rf /home/hummingbot/.cache

# Copy environment only to optimize build caching, so changes in sources will not cause conda env invalidation
COPY --chown=hummingbot:hummingbot setup/environment-linux-aarch64.yml setup/

Expand Down
20 changes: 20 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
.PHONY: run_coverage
.PHONY: report_coverage
.PHONY: development-diff-cover
.PHONY: docker
.PHONY: install
.PHONY: uninstall
.PHONY: clean
.PHONY: build

test:
coverage run -m nose --exclude-dir="test/connector" --exclude-dir="test/debug" --exclude-dir="test/mock" --exclude-dir="test/hummingbot/connector/gateway"
Expand All @@ -18,3 +23,18 @@ report_coverage:
development-diff-cover:
coverage xml
diff-cover --compare-branch=origin/development coverage.xml

docker:
git clean -xdf && make clean && docker build -t hummingbot/hummingbot${TAG} -f Dockerfile .

clean:
./clean

install:
./install

uninstall:
./uninstall

build:
./compile
160 changes: 67 additions & 93 deletions README.md

Large diffs are not rendered by default.

21 changes: 0 additions & 21 deletions conf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,6 @@

test_web3_provider_list = [os.getenv("WEB3_PROVIDER")]

# Latoken Tests
latoken_api_key = os.getenv("LATOKEN_API_KEY")
latoken_secret_key = os.getenv("LATOKEN_SECRET_KEY")

# Liquid Tests
liquid_api_key = os.getenv("LIQUID_API_KEY")
liquid_secret_key = os.getenv("LIQUID_SECRET_KEY")

# Kraken Tests
kraken_api_key = os.getenv("KRAKEN_API_KEY")
kraken_secret_key = os.getenv("KRAKEN_SECRET_KEY")
Expand All @@ -99,10 +91,6 @@
bitmart_secret_key = os.getenv("BITMART_SECRET_KEY")
bitmart_memo = os.getenv("BITMART_MEMO")

# BTC Markets Test
btc_markets_api_key = os.getenv("BTC_MARKETS_API_KEY")
btc_markets_secret_key = os.getenv("BTC_MARKETS_SECRET_KEY")

# CryptoCom Test
crypto_com_api_key = os.getenv("CRYPTO_COM_API_KEY")
crypto_com_secret_key = os.getenv("CRYPTO_COM_SECRET_KEY")
Expand All @@ -115,15 +103,6 @@
gate_io_api_key = os.getenv("GATE_IO_API_KEY")
gate_io_secret_key = os.getenv("GATE_IO_SECRET_KEY")

# CoinZoom Test
coinzoom_api_key = os.getenv("COINZOOM_API_KEY")
coinzoom_secret_key = os.getenv("COINZOOM_SECRET_KEY")
coinzoom_username = os.getenv("COINZOOM_USERNAME")

# Wazirx Test
wazirx_api_key = os.getenv("WAZIRX_API_KEY")
wazirx_secret_key = os.getenv("WAZIRX_SECRET_KEY")

# AltMarkets.io Test
altmarkets_api_key = os.getenv("ALTMARKETS_API_KEY")
altmarkets_secret_key = os.getenv("ALTMARKETS_SECRET_KEY")
Expand Down
57 changes: 57 additions & 0 deletions gateway/docs/swagger/cosmos-routes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
paths:
/cosmos:
get:
tags:
- 'cosmos'
summary: 'View the Cosmos network and RPC URL that gateway is configured to use'
description: 'The user can change this by editing src/chains/cosmos/cosmos.config.ts'
operationId: 'root'
produces:
- 'application/json'
responses:
'200':
description: 'Cosmos config'
schema:
$ref: '#/definitions/CosmosConfigResponse'

/cosmos/balances:
post:
tags:
- 'cosmos'
summary: 'Get the balances of a Cosmos wallet'
operationId: 'balances'
consumes:
- 'application/json'
produces:
- 'application/json'
parameters:
- in: 'body'
name: 'body'
required: true
schema:
$ref: '#/definitions/CosmosBalanceRequest'
responses:
'200':
schema:
$ref: '#/definitions/BalancesResponse'

/cosmos/poll:
post:
tags:
- 'cosmos'
summary: 'Poll the status of a Cosmos transaction'
operationId: 'poll'
consumes:
- 'application/json'
produces:
- 'application/json'
parameters:
- in: 'body'
name: 'body'
required: true
schema:
$ref: '#/definitions/CosmosPollRequest'
responses:
'200':
schema:
$ref: '#/definitions/CosmosPollResponse'
80 changes: 80 additions & 0 deletions gateway/docs/swagger/definitions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -782,6 +782,86 @@ definitions:
txData:
$ref: '#/definitions/SolanaTransaction'

CosmosConfigResponse:
type: 'object'
required:
- 'network'
- 'rpcUrl'
- 'connection'
- 'timestamp'
properties:
network:
type: 'string'
example: 'mainnet'
rpcUrl:
type: 'string'
example: 'https://rpc.cosmos.network/'
connection:
type: 'boolean'
example: true
timestamp:
type: 'integer'
example: 1641889489132

CosmosBalanceRequest:
type: 'object'
required:
- 'address'
- 'tokenSymbols'
properties:
address:
type: 'string'
example: 'cosmos1pc8m5m7n0z8xe7sx2tawkvc0v6qkjql83js0dr'
tokenSymbols:
type: 'array'
items: 'string'
example: ['ATOM', 'NETA']

CosmosPollRequest:
type: 'object'
required:
- 'txHash'
properties:
txHash:
type: 'string'
example: 'E0E02A6C27A75F4442B0746676BDAF5F66AFF1E71928C54624A35B48D5A4B3AF'

CosmosPollResponse:
type: 'object'
required:
- 'network'
- 'timestamp'
- 'txHash'
- 'currentBlock'
- 'txBlock'
- 'gasUsed'
- 'gasWanted'
- 'txData'
properties:
network:
type: 'string'
example: 'mainnet'
timestamp:
type: 'integer'
example: 1636368085740
currentBlock:
type: 'integer'
example: 112646487
txHash:
type: 'string'
example: 'oaMWkrYr1g9JBcDUPRqz21cJBxowM4CEbDy2FsCgNK569CjZSr4wa51d4k9DpTRJU8GUHfp3e9YX2pGXaBS5Tta'
txBlock:
type: 'number'
example: 11581899
gasUsed:
type: 'number'
example: 89054
gasWanted:
type: 'number'
example: 130000
txData:
$ref: '#/definitions/CosmosTransaction'

TokensResponse:
type: 'object'
required:
Expand Down
2 changes: 2 additions & 0 deletions gateway/docs/swagger/swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ tags:
description: 'Interact with the Solana blockchain'
- name: 'serum'
description: 'Interact with Serum to operate on Solana blockchain'
- name: 'cosmos'
description: 'Interact with the Cosmos blockchain'
- name: 'near'
description: 'Interact with the Near blockchain'

Expand Down
4 changes: 4 additions & 0 deletions gateway/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,16 @@ module.exports = {
'src/app.ts',
'src/https.ts',
'src/paths.ts',
'src/services/ethereum-base.ts',
'src/services/cosmos-base.ts',
'src/services/telemetry-transport.ts',
'src/chains/cronos/cronos.ts',
'src/chains/binance-smart-chain/binance-smart-chain.ts',
'src/chains/ethereum/ethereum.ts',
'src/chains/avalanche/avalanche.ts',
'src/chains/avalanche/pangolin/pangolin.ts',
'src/chains/solana/solana.ts',
'src/chains/cosmos/cosmos.ts',
'src/chains/near/near.ts',
'src/chains/near/near.base.ts',
'src/connectors/uniswap/uniswap.config.ts',
Expand Down
3 changes: 3 additions & 0 deletions gateway/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
},
"dependencies": {
"@blockworks-foundation/mango-client": "^3.2.14",
"@cosmjs/proto-signing": "^0.28.10",
"@cosmjs/stargate": "^0.28.13",
"@crocswap/sdk": "^2.4.5",
"@ethersproject/experimental": "^5.3.0",
"@harmony-js/core": "^0.1.57",
Expand Down Expand Up @@ -59,6 +61,7 @@
"axios": "^0.21.1",
"bn.js": "^5.2.1",
"body-parser": "^1.19.0",
"chain-registry": "^0.0.26",
"bs58": "^5.0.0",
"chalk": "^4.1.0",
"coinalpha-ref-sdk": "1.1.0",
Expand Down
3 changes: 3 additions & 0 deletions gateway/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import express from 'express';
import { Request, Response, NextFunction } from 'express';
import { ConfigRoutes } from './services/config/config.routes';
import { SolanaRoutes } from './chains/solana/solana.routes';
import { CosmosRoutes } from './chains/cosmos/cosmos.routes';
import { WalletRoutes } from './services/wallet/wallet.routes';
import { logger } from './services/logger';
import { addHttps } from './https';
Expand Down Expand Up @@ -70,6 +71,7 @@ gatewayApp.use('/clob', ClobRoutes.router);
gatewayApp.use('/wallet', WalletRoutes.router);
gatewayApp.use('/solana', SolanaRoutes.router);
gatewayApp.use('/serum', SerumRoutes.router);
gatewayApp.use('/cosmos', CosmosRoutes.router);
gatewayApp.use('/near', NearRoutes.router);

// a simple route to test that the server is running
Expand Down Expand Up @@ -139,6 +141,7 @@ export const swaggerDocument = SwaggerManager.generateSwaggerJson(
'./docs/swagger/near-routes.yml',
'./docs/swagger/clob-routes.yml',
'./docs/swagger/serum-routes.yml',
'./docs/swagger/cosmos-routes.yml',
]
);

Expand Down
8 changes: 8 additions & 0 deletions gateway/src/chains/avalanche/avanlanche_tokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -1105,6 +1105,14 @@
"symbol": "WBTC.e",
"logoURI": "https://raw.githubusercontent.com/pangolindex/tokens/main/assets/43114/0x50b7545627a5162F82A992c33b87aDc75187B218/logo_24.png"
},
{
"chainId": 43114,
"address": "0x152b9d0FdC40C096757F570A51E494bd4b943E50",
"decimals": 8,
"name": "Bitcoin",
"symbol": "BTC.b",
"logoURI": "https://raw.githubusercontent.com/traderjoe-xyz/joe-tokenlists/main/logos/0x152b9d0FdC40C096757F570A51E494bd4b943E50/logo.png"
},
{
"chainId": 43114,
"address": "0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB",
Expand Down
15 changes: 15 additions & 0 deletions gateway/src/chains/cosmos/cosmos-middlewares.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Cosmos } from './cosmos';
import { NextFunction, Request, Response } from 'express';
import { CosmosConfig } from './cosmos.config';

export const verifyCosmosIsAvailable = async (
_req: Request,
_res: Response,
next: NextFunction
) => {
const cosmos = Cosmos.getInstance(CosmosConfig.config.network.name);
if (!cosmos.ready()) {
await cosmos.init();
}
return next();
};
Loading