Zerion API
This is a socket-based interactive api based on the Socket.io library.
Installation
Please, make sure to use Socket.io v2 client API.
Example client code
Overview
In order to connect, a valid api_token
query parameter must be specified.All tokens are restricted by Origin and therefore a valid HTTP_ORIGIN
header is expected.
Actions
There are three supported types of messages:
get
- requests data, returns a single response and does not emit continuous messagessubscribe
- returns a single response (the same asget
) + creates a subscriptionunsubscribe
- deletes the subscription
Request
Each request has the following structure:
Response
Change
Handlers
AddressHandler (/address
)
/address
)Payload
Messages
AssetsHandler (/assets
)
/assets
)Payload
Messages
BlockLagHandler (/block_lag
)
/block_lag
)Payload
Messages
CompoundHandler (/compound
)
/compound
)Payload
Messages
DyDxHandler (/dydx
)
/dydx
)Payload
Messages
GasPriceHandler (/gas
)
/gas
)Payload
Messages
MakerHandler (/maker
)
/maker
)Payload
Messages
Models
AddressAsset
AddressBSCAsset
AddressInfo
AddressPolygonAsset
Asset
AssetAction
AssetActionAmount
AssetActionFee
AssetComponent
AssetDescription
AssetFullInfo
AssetFullInfoStats
AssetInfo
AssetRelevantResource
AssetStats
AssetTag
BlockLag
Category
CompoundAction
CompoundAsset
CompoundDeposit
CompoundInfo
CompoundLoan
CovalentAsset
Deposit
DyDxAccountBalance
ExploreSection
GasPriceInfo
Loan
LockedAsset
MakerCDP
MakerCDPAction
MakerVault
MakerVaultAction
Portfolio
Price
PriceStat
StakedAsset
Tokenlist
Transaction
TransactionChange
TransactionFee
Structures
AssetType
aave
aave-uniswap
aave-v2
alpha-homora
badger-sett
balancer
bancor
bitcoin
cream
curve
compound
dmm
dodo
dodo-v2
enzyme
ethereum
fulcrum
harvest-vault
idle
iearn-curve
iearn-v2
iearn-v3
indexed
keeperdao
maker
melon
mooniswap
mstable
mushroom-vault
nft
one-inch
pickle-jar
piedao-pool
pool-together
realt
snowswap
stablecoin
synthetix
sushi
swerve
tokenset
tokenset-v2
trash
uniswap
uniswap-v2
xsushi
yearn-vault
yearn-vault-v2
None
TransactionStatus
confirmed
failed
pending
MakerDSSActionType
open
deposit
withdraw
borrow
repay
transfer
liquidate
TransactionAction
Authorize
Trade
Deposit
Withdraw
Borrow
Repay
Liquidate
Enable Borrowing
Open CDP
Close CDP
Transfer CDP
Migrate CDP
Open Vault
Close Vault
Transfer Vault
Migrate
Create Exchange
Add Liquidity
Remove Liquidity
Stake
Unstake
Claim Rewards
Register ENS Domain
Renew ENS Domain
PriceCurrency
eth
btc
usd
eur
krw
rub
gbp
aud
cad
inr
jpy
nzd
try
zar
cny
chf
RDBTransactionType
send
receive
trade
authorize
execution
deployment
cancel
deposit
withdraw
borrow
repay
stake
unstake
claim
CategoryDisplayType
short
detailed
Direction
in
out
self
PortfolioFields
all
assets
AssetActionType
buy
sell
send
receive
borrow
deposit
authorize
withdraw
repay
stake
unstake
claim
GasPriceSource
gas-now
eth-gas-station
Last updated