Price
property
Price of Level2 quote.
Syntax
public double Price { get; }
Example
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using PTLRuntime.NETScript;
namespace Level2ClassExamples
{
public class Level2ClassExamples : NETStrategy
{
public override void OnQuote()
{
Instrument inst = Instruments.Current;
Level2[] ask_level2;
ask_level2=inst.getAsksDepth();
//Level2Class Properties
for(int i=0;ask_level2.Length-1>i;i++)
{
Print(ask_level2[i].Instrument);
Print(ask_level2[i].MMID);
Print(ask_level2[i].Price);
Print(ask_level2[i].Side);
Print(ask_level2[i].Size);
Print(ask_level2[i].Source);
Print(ask_level2[i].Time);
Print(ask_level2[i].Volume);
Print(ask_level2[i].NumberOfOrders);
}
}
}
}
Discussion
Join PTMC community to post your comments
No comments yet. Be the first.