List account assets
curl --request GET \
--url https://api.worm.wtf/account/assets/import requests
url = "https://api.worm.wtf/account/assets/"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.worm.wtf/account/assets/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.worm.wtf/account/assets/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.worm.wtf/account/assets/"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.worm.wtf/account/assets/")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.worm.wtf/account/assets/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": [
{
"asset_kind": "share",
"amounts": {
"total": "120.000000",
"locked": "0.000000",
"available": "120.000000"
},
"token": {
"symbol": "7n9G9WfQ2V7d6hM3XK8pQ4LwR2eY6aT1uJ5cB8mN3qPz-LPT",
"address": "8k2LmN4pQr9sTvWxYz1aBc3dEf5gHi6jKl7mNo8pQr9sTv"
},
"value": {
"usdt": "80.400000",
"basis": "mark_to_market"
},
"position": {
"market": {
"condition_id": "7n9G9WfQ2V7d6hM3XK8pQ4LwR2eY6aT1uJ5cB8mN3qPz",
"title": "Will the Atlanta Hawks beat the New York Knicks in the NBA game on April 28, 2026?",
"state": "open",
"margin_enabled": false
},
"is_yes": true,
"outcome_text": "New York Knicks",
"is_final": false,
"avg_trade_price": "0.620000000000000000"
},
"created": 1714301250
}
],
"meta": {
"limit": 50,
"next_cursor": "eyJvIjoyMH0"
},
"error": null
}
{
"data": null,
"meta": null,
"error": {
"code": -11,
"slug": "invalid_request_params",
"message": "Validation Error",
"details": []
}
}
{
"data": null,
"meta": null,
"error": {
"code": -12,
"slug": "authentication_failed",
"message": "Invalid signature",
"details": []
}
}
{
"data": null,
"meta": null,
"error": {
"code": -14,
"slug": "permission_denied",
"message": "You do not have permission to perform this action.",
"details": []
}
}
{
"data": null,
"meta": null,
"error": {
"code": -17,
"slug": "throttled",
"message": "Request was throttled.",
"details": []
}
}
{
"data": null,
"meta": null,
"error": {
"code": -3,
"slug": "internal_error",
"message": "An internal error occurred.",
"details": []
}
}
Account
List account assets
List spot market outcome share balances.
GET
/
account
/
assets
/
List account assets
curl --request GET \
--url https://api.worm.wtf/account/assets/import requests
url = "https://api.worm.wtf/account/assets/"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.worm.wtf/account/assets/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.worm.wtf/account/assets/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.worm.wtf/account/assets/"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.worm.wtf/account/assets/")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.worm.wtf/account/assets/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": [
{
"asset_kind": "share",
"amounts": {
"total": "120.000000",
"locked": "0.000000",
"available": "120.000000"
},
"token": {
"symbol": "7n9G9WfQ2V7d6hM3XK8pQ4LwR2eY6aT1uJ5cB8mN3qPz-LPT",
"address": "8k2LmN4pQr9sTvWxYz1aBc3dEf5gHi6jKl7mNo8pQr9sTv"
},
"value": {
"usdt": "80.400000",
"basis": "mark_to_market"
},
"position": {
"market": {
"condition_id": "7n9G9WfQ2V7d6hM3XK8pQ4LwR2eY6aT1uJ5cB8mN3qPz",
"title": "Will the Atlanta Hawks beat the New York Knicks in the NBA game on April 28, 2026?",
"state": "open",
"margin_enabled": false
},
"is_yes": true,
"outcome_text": "New York Knicks",
"is_final": false,
"avg_trade_price": "0.620000000000000000"
},
"created": 1714301250
}
],
"meta": {
"limit": 50,
"next_cursor": "eyJvIjoyMH0"
},
"error": null
}
{
"data": null,
"meta": null,
"error": {
"code": -11,
"slug": "invalid_request_params",
"message": "Validation Error",
"details": []
}
}
{
"data": null,
"meta": null,
"error": {
"code": -12,
"slug": "authentication_failed",
"message": "Invalid signature",
"details": []
}
}
{
"data": null,
"meta": null,
"error": {
"code": -14,
"slug": "permission_denied",
"message": "You do not have permission to perform this action.",
"details": []
}
}
{
"data": null,
"meta": null,
"error": {
"code": -17,
"slug": "throttled",
"message": "Request was throttled.",
"details": []
}
}
{
"data": null,
"meta": null,
"error": {
"code": -3,
"slug": "internal_error",
"message": "An internal error occurred.",
"details": []
}
}
Query Parameters
string
When set, return only share rows for that market (
condition_id).integer
default:"50"
Number of records to return. Range: 1-200.
string
Cursor from
meta.next_cursor. The encoded payload uses the key o (row offset into the internal scan; some rows are skipped so it is not a simple page index).Response
array
Account asset balance rows.
Show Data fields
Show Data fields
string
Always
share (spot market outcome token balance).object
Total/locked/available balances.
object
Outcome token reference.
symbol is the internal share id ({market_condition_id}-LPT or -SPT). address is the on-chain SPL mint from the linked Solana token (null only if the share has no mint configured).object
Valuation payload.
object
Outcome position. Includes
is_yes, outcome_text, is_final, avg_trade_price, and nested market summary.integer | null
Row creation timestamp.
object | null
Pagination for this list:
limit and next_cursor. See Pagination. On error responses, meta is null.object | null
null on success. Error object on failed requests.{
"data": [
{
"asset_kind": "share",
"amounts": {
"total": "120.000000",
"locked": "0.000000",
"available": "120.000000"
},
"token": {
"symbol": "7n9G9WfQ2V7d6hM3XK8pQ4LwR2eY6aT1uJ5cB8mN3qPz-LPT",
"address": "8k2LmN4pQr9sTvWxYz1aBc3dEf5gHi6jKl7mNo8pQr9sTv"
},
"value": {
"usdt": "80.400000",
"basis": "mark_to_market"
},
"position": {
"market": {
"condition_id": "7n9G9WfQ2V7d6hM3XK8pQ4LwR2eY6aT1uJ5cB8mN3qPz",
"title": "Will the Atlanta Hawks beat the New York Knicks in the NBA game on April 28, 2026?",
"state": "open",
"margin_enabled": false
},
"is_yes": true,
"outcome_text": "New York Knicks",
"is_final": false,
"avg_trade_price": "0.620000000000000000"
},
"created": 1714301250
}
],
"meta": {
"limit": 50,
"next_cursor": "eyJvIjoyMH0"
},
"error": null
}
{
"data": null,
"meta": null,
"error": {
"code": -11,
"slug": "invalid_request_params",
"message": "Validation Error",
"details": []
}
}
{
"data": null,
"meta": null,
"error": {
"code": -12,
"slug": "authentication_failed",
"message": "Invalid signature",
"details": []
}
}
{
"data": null,
"meta": null,
"error": {
"code": -14,
"slug": "permission_denied",
"message": "You do not have permission to perform this action.",
"details": []
}
}
{
"data": null,
"meta": null,
"error": {
"code": -17,
"slug": "throttled",
"message": "Request was throttled.",
"details": []
}
}
{
"data": null,
"meta": null,
"error": {
"code": -3,
"slug": "internal_error",
"message": "An internal error occurred.",
"details": []
}
}