<commit_before>import akka.agent.Agent

import markets.orders.limit.LimitOrderLike
import markets.tickers.Tick
import markets.tradables.Tradable


/** A Mixin trait providing behavior necessary to generate and submit `LimitOrderLike` orders. */
trait LiquiditySupplier {
  this: TradingActor =>
  
  def generateLimitOrder(tradable: Tradable, ticker: Agent[Tick]): LimitOrderLike

}<commit_msg>Filled out methods for Liquidity Supplier.<commit_after>import akka.agent.Agent

import markets.orders.limit.LimitOrderLike
import markets.tickers.Tick
import markets.tradables.Tradable

import scala.concurrent.duration.FiniteDuration
import scala.concurrent.ExecutionContext.Implicits.global


/** A Mixin trait providing behavior necessary to generate and submit `LimitOrderLike` orders. */
trait LiquiditySupplier {
  this: TradingActor =>

  def generateLimitOrder(tradable: Tradable, ticker: Agent[Tick]): LimitOrderLike

  def submitLimitOrder(): Unit

  def scheduleLimitOrder(initialDelay: FiniteDuration): Unit = {
    context.system.scheduler.scheduleOnce(initialDelay)(submitLimitOrder())
  }

  def scheduleLimitOrder(initialDelay: FiniteDuration, interval: FiniteDuration): Unit = {
    context.system.scheduler.schedule(initialDelay, interval)(submitLimitOrder())
  }

}
{'fraction_non_alphanumeric': 0.08763693270735524, 'fraction_numerical': 0.0, 'mean_word_length': 6.105555555555555, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5926364', 'n_tokens_mistral': 364, 'n_tokens_neox': 352, 'n_words': 85}