Public API docs
1. Get trader statistics
URL
https://api.copin.io/public/:PROTOCOL/position/statistic/filter
PROTOCOL: KWENTA
GMX
POLYNOMIAL
Method
POST
Body
pagination:
limit: number of records
offset: number of skipped records
sortBy: supported all
fieldName
in rangessortType:
desc
,asc
queries: array of
fieldName:
type
account
value:
type:
D7
,D15
,D30
,D60
account: EVM address
ranges: array of
fieldName:
lastTradeAtTs
Timestamp of last traderunTimeDays
Number of days since the first tradepnl
PnL including feerealisedPnl
PnL without feeavgRoi
Average ROI including feerealisedAvgRoi
Average ROI without feetotalGain
Total gain including feerealisedTotalGain
Total gain without feetotalLoss
Total loss including feerealisedTotalLoss
Total loss without feetotalFee
Total feetotalVolume
Total volumeavgVolume
Average volumemaxRoi
Maximum ROI including feerealisedMaxRoi
Maximum ROI without feemaxDrawdown
Max drawdown including feerealisedMaxDrawdown
Max drawdown without feetotalTrade
Total tradestotalWin
Total winstotalLose
Total losestotalLiquidation
Total liquidationswinRate
Win Rate -- percentprofitRate
Total gain / (Total gain + Total loss) -- percent, including feerealisedProfitRate
Total gain / (Total gain + Total loss) -- percent, without feelongRate
Long Positions / Total Positions -- percentorderPositionRatio
Total Orders / Total PositionsprofitLossRatio
(Total gain / Total win) / (Total loss / Total lose) -- including feerealisedProfitLossRatio
(Total gain / Total win) / (Total loss / Total lose) -- without feegainLossRatio
Total gain / Total loss -- including feerealisedGainLossRatio
Total gain / Total loss -- without feeavgLeverage
Average leveragemaxLeverage
Maximum leverageminLeverage
Minimum leverageavgDuration
Average duration in secondsminDuration
Minimum duration in secondsmaxDuration
Maximum duration in seconds
gte: numeric value
lte: numeric value
Example request
Example response
2. Get trader positions
URL
https://api.copin.io/:PROTOCOL/position/filter
PROTOCOL: KWENTA
GMX
POLYNOMIAL
Method
POST
Body
pagination:
limit: number of records
offset: number of skipped records
sortBy:
closeBlockTime
openBlockTime
averagePrice
size
leverage
durationInSecond
orderCount
roi
realisedRoi
pnl
realisedPnl
sortType:
desc
,asc
queries: array of
fieldName:
account
status
value:
status:
CLOSE
OPEN
account: EVM address
Example request
Example response
3. Get position details
URL
https://api.copin.io/:PROTOCOL/position/detail/:positionId
PROTOCOL: KWENTA
GMX
POLYNOMIAL
Method
GET
Example request
https://api.copin.io/KWENTA/position/detail/656444f14350fb0b69bd6402
Example response
4. Leaderboards
URL
https://api.copin.io/leaderboards/page
Method
GET
Query
protocol:
KWENTA
GMX
POLYNOMIAL
queryDate: Date in timestamp
statisticType:
MONTH
WEEK
limit: number of records
offset: number of skipped records
sort_by:
ranking
totalPnl
totalRealisedPnl
totalVolume
totalFee
totalTrade
totalWin
totalLose
totalLiquidation
totalLiquidationAmount
sort_type:
asc
desc
Example query
https://api.copin.io/leaderboards/page?protocol=KWENTA&queryDate=1701835880676&statisticType=MONTH&limit=20&offset=0&sort_by=ranking&sort_type=asc
Example response
5. Open Interest
URL
https://api.copin.io/:PROTOCOL/top-positions/opening
PROTOCOL: KWENTA
GMX
POLYNOMIAL
Method
POST
Body
pagination:
limit: number of records
offset: number of skipped records
sortBy:
openBlockTime
size
pnl
realisedPnl
sortType:
desc
Example request
Example response
Last updated