Skip to main content
GET
Get total earnings for user by date

授权

POLY_API_KEY
string
header
必填

Your API key

POLY_ADDRESS
string
header
必填

Ethereum address associated with the API key

POLY_SIGNATURE
string
header
必填

HMAC signature of the request

POLY_PASSPHRASE
string
header
必填

API key passphrase

POLY_TIMESTAMP
string
header
必填

Unix timestamp of the request

查询参数

date
string<date>
必填

Date in YYYY-MM-DD format

signature_type
enum<integer>

Signature type for address derivation (required for API KEY auth):

  • 0: EOA
  • 1: POLY_PROXY
  • 2: POLY_GNOSIS_SAFE
可用选项:
0,
1,
2
maker_address
string

Maker address to query earnings for

sponsored
boolean
默认值:false

If true, aggregates both native and sponsored earnings

响应

Successfully retrieved total user earnings

date
string<date-time>
必填

Date of the earnings

asset_address
string
必填

Address of the reward asset

maker_address
string
必填

Address of the maker

earnings
number<double>
必填

Total amount of earnings in the asset

asset_rate
number<double>
必填

Exchange rate of the asset