VentzCoin.GetRecordsDay
Skip to content
mnscript
VentzCoinRecord[] VentzCoin.GetRecordsDay() 

Description ​

Gets the VentzCoin history for the past day.

Returns ​

VentzCoinRecord[] - 24 records for each hour of the past day of VentzCoin

Example ​

msc
using Console;
using VentzCoin;
using Util;
using Array;

// Prints the value of VentzCoin for each hour of the past day.

VentzCoinRecord[] records = VentzCoin.GetRecordsDay();
number numRecords = Array.Length(records);
number recordIndex = 1;

while(recordIndex <= numRecords){
    VentzCoinRecord record = records[recordIndex];
    
    Console.WriteLine("Record "..recordIndex..": "..record.GetValue());
    recordIndex = recordIndex + 1;
}