CoinAlpha / gateway-api

Apache License 2.0
47 stars 25 forks source link

(feat) standard endpoints & consolidate protocol library functions #37

Closed gyozajiro closed 3 years ago

gyozajiro commented 3 years ago
gyozajiro commented 3 years ago

API Endpoints are consolidated as below:

General Ethereum API

# get ethereum-based wallet balances
/eth/balances

# get token allowance amount
/eth/allowances

# approve token allowance amount
/eth/approve

# get tx status update
/eth/poll

Balancer/Uniswap API

# initiate swap pool, auto-approve allowance
eth/{protocol}/start

# lookup buy/sell price
eth/{protocol}/price

# execute buy/sell trade
eth/{protocol}/trade

Terra API

# 
terra/start
terra/price
terra/trade

Import Postman collection & environment file in test/postman/v2 for latest endpoints and request params

gyozajiro commented 3 years ago

Client PR for this feature. https://github.com/CoinAlpha/hummingbot/pull/2905.

dennisocana commented 3 years ago

Requesting review from @vic-en as well so he can work on the story https://github.com/CoinAlpha/hummingbot/issues/3037

PtrckM commented 3 years ago

-logs config1 config2 (uniswap) logs_doonconf.log logs_uniswap.log

-logs config3 balancer logs_ditomobile.log

PtrckM commented 3 years ago
PtrckM commented 3 years ago