min_trading_vol
min_trading_vol coin
The min_trading_vol method returns the minimum required volume for buy/sell/setprice methods for the selected coin.
Arguments
| Structure | Type | Description |
|---|---|---|
| coin | string | the name of the coin to retrieve the minimum trading volume |
Response
| Structure | Type | Description |
|---|---|---|
| result | object | result object |
| coin | string | the coin ticker from the request |
| min_trading_vol | string (decimal) | the minimum trading volume threshold in decimal representation |
| min_trading_vol_rat | rational | the minimum trading volume threshold represented as a standard RationalValue object |
| min_trading_vol_fraction | fraction | the minimum trading volume threshold represented as a standard FractionalValue object |
📌 Examples
Command
POST min_trading_vol
{
"userpass": "RPC_UserP@SSW0RD",
"method": "min_trading_vol",
"coin": "DOC"
} curl --url "http://127.0.0.1:7783" --data '{
"userpass": "RPC_UserP@SSW0RD",
"method": "min_trading_vol",
"coin": "DOC"
}' import requests
import json
url = "http://127.0.0.1:7783"
payload = {
"userpass": "RPC_UserP@SSW0RD",
"method": "min_trading_vol",
"coin": "DOC"
}
response = requests.post(url, json=payload)
print(json.dumps(response.json(), indent=2)) const payload = {
"userpass": "RPC_UserP@SSW0RD",
"method": "min_trading_vol",
"coin": "DOC"
};
const response = await fetch("http://127.0.0.1:7783", {
method: "POST",
body: JSON.stringify(payload),
});
console.log(await response.json()); <?php
$payload = <<<'JSON'
{
"userpass": "RPC_UserP@SSW0RD",
"method": "min_trading_vol",
"coin": "DOC"
}
JSON;
$ch = curl_init("http://127.0.0.1:7783");
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);
$response = curl_exec($ch);
curl_close($ch);
echo $response; package main
import (
"bytes"
"fmt"
"io"
"net/http"
)
func main() {
payload := []byte(`{"userpass":"RPC_UserP@SSW0RD","method":"min_trading_vol","coin":"DOC"}`)
resp, err := http.Post("http://127.0.0.1:7783", "application/json", bytes.NewBuffer(payload))
if err != nil {
panic(err)
}
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
} require 'net/http'
require 'json'
require 'uri'
uri = URI("http://127.0.0.1:7783")
payload = {
"userpass": "RPC_UserP@SSW0RD",
"method": "min_trading_vol",
"coin": "DOC"
}
response = Net::HTTP.post(uri, payload.to_json, 'Content-Type' => 'application/json')
puts JSON.pretty_generate(JSON.parse(response.body)) Show Response
Response
{
"result": {
"coin": "DOC",
"min_trading_vol": "0.0001",
"min_trading_vol_fraction": {
"numer": "1",
"denom": "10000"
},
"min_trading_vol_rat": [
[1, [1]],
[1, [10000]]
]
}
}