The resource loading... loading...

exchange.GetRawJSON

Get the original content returned by the last rest request for the current exchange object ({@var/EXCHANGE exchange}, {@var/EXCHANGE/exchanges exchanges}).

The response data for the rest request. string

exchange.GetRawJSON()

function main(){
    exchange.GetAccount(); 
    var obj = JSON.parse(exchange.GetRawJSON());
    Log(obj);
}
import json
def main():
    exchange.GetAccount()
    obj = json.loads(exchange.GetRawJSON())
    Log(obj)
void main() {
    auto obj = exchange.GetAccount();
    // C++ does not support the GetRawJSON function
    Log(obj);
}

The exchange.GetRawJSON() function is only supported for the real trading. The function is not supported by strategies in the C++ language.

{@var/EXCHANGE exchange}

exchange.SetMaxBarLen exchange.GetRate