FastMM documentation
FastMM C++ API 0.14.0
Public headers, tier 1 and tier 2
Loading...
Searching...
No Matches
fastmm::CapacityQuote Struct Reference

What an action costs on one account now (ctx.capacity). More...

#include <fastmm/core/capacity_price.hpp>

Public Attributes

double price = 0.0
 the whole price: what an action's value must reach
 
double floor = 0.0
 L, the value of a minimum-notional order.
 
double window = 0.0
 the account window's part (L * h(z))
 
double weight = 0.0
 the pool's request weight part
 
double day = 0.0
 the account's and the strategy's day prices
 
double window_share = 0.0
 z of the account's window
 
std::int64_t window_used = 0
 
std::int64_t window_orders = 0
 orders_10s (0: the window is not priced)
 
bool on = false
 

Detailed Description

What an action costs on one account now (ctx.capacity).

Member Data Documentation

◆ price

double fastmm::CapacityQuote::price = 0.0

the whole price: what an action's value must reach

◆ floor

double fastmm::CapacityQuote::floor = 0.0

L, the value of a minimum-notional order.

◆ window

double fastmm::CapacityQuote::window = 0.0

the account window's part (L * h(z))

◆ weight

double fastmm::CapacityQuote::weight = 0.0

the pool's request weight part

◆ day

double fastmm::CapacityQuote::day = 0.0

the account's and the strategy's day prices

◆ window_share

double fastmm::CapacityQuote::window_share = 0.0

z of the account's window

◆ window_used

std::int64_t fastmm::CapacityQuote::window_used = 0

◆ window_orders

std::int64_t fastmm::CapacityQuote::window_orders = 0

orders_10s (0: the window is not priced)

◆ on

bool fastmm::CapacityQuote::on = false