Skip to content

Commit b501604

Browse files
No release notes for this build
1 parent 28dc004 commit b501604

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

R/ApiResponseSecurityQuote.r

+13-1
Original file line numberDiff line numberDiff line change
@@ -574,13 +574,20 @@ ApiResponseSecurityQuote <- R6::R6Class(
574574
self$`previous_close` <- NA
575575
}
576576

577+
578+
579+
577580
if (!is.null(listObject$`previous_close_date`)) {
578-
self$`previous_close_date` <- listObject$`previous_close_date`
581+
self$`previous_close_date` <- self$`previous_close_date` <- as.Date(listObject$`previous_close_date`, "%Y-%m-%d")
579582
}
580583
else {
581584
self$`previous_close_date` <- NA
582585
}
583586

587+
588+
589+
590+
584591
if (!is.null(listObject$`change`)) {
585592
self$`change` <- listObject$`change`
586593
}
@@ -695,7 +702,12 @@ ApiResponseSecurityQuote <- R6::R6Class(
695702
listObject[["marketcap"]] <- self$`marketcap`
696703
listObject[["pricetoearnings"]] <- self$`pricetoearnings`
697704
listObject[["previous_close"]] <- self$`previous_close`
705+
698706
listObject[["previous_close_date"]] <- self$`previous_close_date`
707+
708+
709+
710+
699711
listObject[["change"]] <- self$`change`
700712
listObject[["change_percent"]] <- self$`change_percent`
701713
listObject[["adj_close_5_days_ago"]] <- self$`adj_close_5_days_ago`

docs/ApiResponseSecurityQuote.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Name | Type | Description
2424
**marketcap** | **Numeric** | The current market cap. &nbsp;
2525
**pricetoearnings** | **Numeric** | The current price to earnings. &nbsp;
2626
**previous_close** | **Numeric** | The previous close price. &nbsp;
27-
**previous_close_date** | **Numeric** | The date of the previous close. &nbsp;
27+
**previous_close_date** | [**Date**](Date.md) | The date of the previous close. &nbsp;
2828
**change** | **Numeric** | The difference in last price from the last close price &nbsp;
2929
**change_percent** | **Numeric** | The percent difference in last price from the last close price &nbsp;
3030
**adj_close_5_days_ago** | **Numeric** | The adjusted close price 5 days ago. &nbsp;
@@ -47,6 +47,9 @@ Name | Type | Description
4747
[//]: # (CONTAINED_CLASS:IntrinioSDK::POSIXlt)
4848

4949

50+
[//]: # (CONTAINED_CLASS:IntrinioSDK::Date)
51+
52+
5053
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
5154

5255

0 commit comments

Comments
 (0)