max_taker_vol
max_taker_vol coin
The max_taker_vol method returns the maximum available volume for buy/sell methods for selected coin.
This takes the dex fee and blockchain miner fees into account. The result should be used as is for sell method or divided by price for buy method.
Arguments
| Structure | Type | Description |
|---|---|---|
| coin | string | the name of the coin to retrieve the max available taker volume |
Response
| Structure | Type | Description |
|---|---|---|
| result | fraction | the max available taker volume, represented as a standard FractionalValue object. |
📌 Examples
Command
POST max_taker_vol
{
"method": "max_taker_vol",
"coin": "DOC",
"userpass": "RPC_UserP@SSW0RD",
"mm2": 1
} curl --url "http://127.0.0.1:7783" --data '{
"method": "max_taker_vol",
"coin": "DOC",
"userpass": "RPC_UserP@SSW0RD",
"mm2": 1
}' import requests
import json
url = "http://127.0.0.1:7783"
payload = {
"method": "max_taker_vol",
"coin": "DOC",
"userpass": "RPC_UserP@SSW0RD",
"mm2": 1
}
response = requests.post(url, json=payload)
print(json.dumps(response.json(), indent=2)) const payload = {
"method": "max_taker_vol",
"coin": "DOC",
"userpass": "RPC_UserP@SSW0RD",
"mm2": 1
};
const response = await fetch("http://127.0.0.1:7783", {
method: "POST",
body: JSON.stringify(payload),
});
console.log(await response.json()); <?php
$payload = <<<'JSON'
{
"method": "max_taker_vol",
"coin": "DOC",
"userpass": "RPC_UserP@SSW0RD",
"mm2": 1
}
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(`{"method":"max_taker_vol","coin":"DOC","userpass":"RPC_UserP@SSW0RD","mm2":1}`)
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 = {
"method": "max_taker_vol",
"coin": "DOC",
"userpass": "RPC_UserP@SSW0RD",
"mm2": 1
}
response = Net::HTTP.post(uri, payload.to_json, 'Content-Type' => 'application/json')
puts JSON.pretty_generate(JSON.parse(response.body)) Show Response
Response
{
"result": {
"denom": "38900000000",
"numer": "309786160299"
}
}