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

Description ​

Gets the VentzCoin history for the past month.

Returns ​

VentzCoinRecord[] - 30 records for each day of the past month of VentzCoin

Example ​

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

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

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

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