-
Notifications
You must be signed in to change notification settings - Fork 24
(feat) standard endpoints & consolidate protocol library functions #37
Conversation
gyozajiro
commented
Jan 30, 2021
- merge balancer & uniswap endpoint to under /eth
- consolidate functions on balancer, uniswap swaps price lookup
- cache swap pool as class property
- replace token contract address with token symbol on request param
- add mainnet token list (1inch)
- add maxswaps, ethGasStation api, gas level param to .env
* merge balancer & uniswap endpoint to under /eth * consolidate functions on balancer, uniswap swaps price lookup * cache swap pool as class property * replace token contract address with token symbol on request param * add mainnet token list (1inch) * add maxswaps, ethGasStation api, gas level param to .env
|
API Endpoints are consolidated as below: General Ethereum API Balancer/Uniswap API Terra API Import Postman collection & environment file in |
|
Client PR for this feature. https://github.com/CoinAlpha/hummingbot/pull/2905. |
* Consolidate log into `info`. Remove debug, error, and rejection. * Enable debug mode logging for development * Check for undefined erc20 token list url source * Fix token list conversion for allowance & approval
* accept balancer exchange proxy in .env * accept balancer gas base, gas per swap overwrite in .env * accept eth approval gas limit, manual gas fee setting in .env when ethgasstation not set to true * accept uniswap router setting in .env * accept uniswap gas limit, ttl, update period overwrite * update .env.example
* Add initiate one-time gas retrieval
* Add price check debugging
|
Requesting review from @vic-en as well so he can work on the story https://github.com/CoinAlpha/hummingbot/issues/3037 |
* get on-chain pool data update to prevent change in pool balance prior to trade execution * remove pool cache loop during strategy initialisation
* update start function to use POST to standard request body param (json in particular).
* reduce redundant params being sent over stand POST api call in client
|
-logs config1 config2 (uniswap) -logs config3 balancer |
…into feat/optimize_protocol_endpoints
Change not required after code refactor in subsequent commits
vic-en
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PtrckM
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and confirmed working by QA.












