Every tokenized stock: status, on-chain price, close reference, spread
curl --request GET \
--url https://api.tozzecard.xyz/marketimport requests
url = "https://api.tozzecard.xyz/market"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.tozzecard.xyz/market', 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.tozzecard.xyz/market",
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.tozzecard.xyz/market"
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.tozzecard.xyz/market")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tozzecard.xyz/market")
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[
{
"symbol": "NVDAon",
"address": "<string>",
"platform": "<string>",
"ticker": "NVDA",
"ratio": 123,
"status": {
"openState": true,
"marketStatus": "premarket",
"reasonCode": "<string>",
"nextOpenTime": 123,
"nextCloseTime": 123
},
"statusSource": "token",
"tokenPrice": 123,
"perShare": 123,
"priceAt": 123,
"closeRef": {
"perShare": 123,
"at": 123
},
"spreadVsClose": 123
}
]Market
Every tokenized stock: status, on-chain price, close reference, spread
GET
/
market
Every tokenized stock: status, on-chain price, close reference, spread
curl --request GET \
--url https://api.tozzecard.xyz/marketimport requests
url = "https://api.tozzecard.xyz/market"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.tozzecard.xyz/market', 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.tozzecard.xyz/market",
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.tozzecard.xyz/market"
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.tozzecard.xyz/market")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tozzecard.xyz/market")
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[
{
"symbol": "NVDAon",
"address": "<string>",
"platform": "<string>",
"ticker": "NVDA",
"ratio": 123,
"status": {
"openState": true,
"marketStatus": "premarket",
"reasonCode": "<string>",
"nextOpenTime": 123,
"nextCloseTime": 123
},
"statusSource": "token",
"tokenPrice": 123,
"perShare": 123,
"priceAt": 123,
"closeRef": {
"perShare": 123,
"at": 123
},
"spreadVsClose": 123
}
]Response
200 - application/json
OK
Example:
"NVDAon"
issuer platform id (Ondo, bStocks)
Example:
"NVDA"
shares per token
Show child attributes
Show child attributes
benchmark = borrowed from SPYon (bStocks have no status)
Available options:
token, benchmark on-chain price per token, USD
last regular-session price per share (our close reference)
Show child attributes
Show child attributes
token price vs close reference; 0.032 = 3.2% above