fill_order: fill_order

Description Usage Arguments

View source: R/order_functions.R

Description

Fill orders once available market depth is available.

Usage

1
2
3
4
5
6
7
8
9
fill_order(
  market_order,
  order_book,
  record,
  current_price,
  tick_size,
  next_order_position,
  mm_price
)

Arguments

market_order

The order to be filled.

order_book

The order book

record

The trading record (which is tracking the traded prices)

current_price

The current trading price

tick_size

The minimum tick size allowed

next_order_position

The position of the next order in the book

mm_price

THe market makers price


norwegianblueparrot/marketsimulatr documentation built on Dec. 22, 2021, 3:13 a.m.