The Lab

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • http method/path : GET : [root]/system/ruok
  • reply : Replies with "imok".

Environment

  • http method/path : GET : [root]/system/envi
  • reply : Replies with JSON object detailing compilation and runtime environment properties. This includes compiler version, selected compiler flags, custom flags, compile timestamp, dependency list & versions, hardware details, os name & details, resource limits, & executable file stats.

...

Code Block
{ "currency_control": true
, "ccy_limit_denomination": "NATIVE"
, "USD": 10000000
, "EUR": 10000000
, "GBP": 10000000
, "JPY": 1000000000
}

Update Currency Volatility

  • http method/path : PUT : [root]/group/[group]/update_currency_volatility
  • arg example :
Code Block
{ "USD": 1
, "EUR": 5
, "GBP": 2
, "JPY": 0.5
}

Update Currency Properties

  • http method/path : PUT : [root]/group/[group]/update_currency_properties
  • note : Combines update_currency_limit & update_currency_volatility into one single atomic call.
  • arg example :
Code Block
{ "limits":
    { "currency_control": true
    , "ccy_limit_denomination": "RESERVE"
    , "USD": 10000000
    , "EUR": 10000000
    , "GBP": 10000000
    , "JPY": 10000000
    }
, "volatilities":
    { "USD": 1
    , "EUR": 5
    , "GBP": 2
    , "JPY": 0.5
    }
}

Update Currency Baskets

  • http method/path : PUT : [root]/group/[group]/update_currency_basket
  • note : When turned on, currencies within the specified set of currency baskets are subject to the exposure limit in dollars set by t currencies outside of all baskets are not allowed to trade. Every "updatecurrencybasket" is assumed to contain the contain the full set of currency baskets.
  • arg example :

...