RustMinerSystem

Documentation

Get Subaccount Earnings

GET /api/subaccount/profit?coin={coin}&sid={sid}: Get Subaccount Earnings.

Get Subaccount Earnings

This chapter documents the request shape, parameters, and response for GET /api/subaccount/profit?coin={coin}&sid={sid}.

Note

The endpoint contract below is carried over from the legacy RustMinerSystem documentation and organized under the current PoolNode documentation structure. Use your actual node address, secure route, and backend version when integrating.

Endpoint Contract

URL: 
/api/subaccount/profit?coin={coin}&sid={sid}

METHOD: 
GET

PARAMS:
coin传入对应币种,例如BTC、LTC....
sid传入子账号id

RESULT:
[
    // 总收益
    {
        "profit": null,
        "status": "all"
    },
    // 昨日收益
    {
        "profit": null,
        "status": "yesterday"
    },
    // 未支付收益
    {
        "profit": null,
        "status": "unpaid"
    },
    // 预估收益
    {
        "profit": "0",
        "status": "estimate_profit"
    }
]

Legacy Source