Golang client for compound.finace api and smart contracts
APACHE-2.0 License
WARNING: this code deals with money both by making blockchain calls and returning information that can be used to lose/gain money. Please use cautiously and dont come complaining if you end up losing money.
go-compound
is a Golang client, and library for interacting with the compound.finace API, and interacting with the compound contracts, allowing for the creation of bots trading with the Compound protocol.
abi
contains json abi definitions for various compound smart contractsbindigns
contains abigen
generated golang bindings for the various abi'sclient
contains a client library to build applications that use the compound.finance API and interact with the smart contractscmd
contains a small command-line clientmodels
contains Golang types for the various responses that the API gives. Currently it has types for CTokenService
and AccountService
responses.pb
contains protobuf definitions for the compound APIs. Do not usesampler
contains sampler configurations to enable console based monitoring of your compound accountsAccountService::AccountResponse
information, suitable for piping to jq
sampler/sampler.yml
however you'll need to replace the addresses as needed.MarketHistoryService
APIMarketHistoryService
metricsIf you like this application feel free to send me some ETH, or whatever (shit)coins you want to get rid of 0xc7459562777DDf3A1A7afefBE515E8479Bd3FDBD
.
exchangeRateCurrent
and exchangeRateStored