File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 13
13
// limitations under the License.
14
14
// -------------------------------------------------------------------------------------------------
15
15
16
- //! Example showing how to use the GreeksCalculator with a DataActor.
16
+ //! Example showing how to use the ` GreeksCalculator` with a ` DataActor` .
17
17
18
18
use std:: {
19
19
cell:: RefCell ,
@@ -32,7 +32,7 @@ use nautilus_common::{
32
32
} ;
33
33
use nautilus_model:: { data:: greeks:: GreeksData , enums:: PositionSide , identifiers:: InstrumentId } ;
34
34
35
- /// A custom actor that uses the GreeksCalculator.
35
+ /// A custom actor that uses the ` GreeksCalculator` .
36
36
struct GreeksActor {
37
37
core : DataActorCore ,
38
38
greeks_calculator : GreeksCalculator ,
@@ -216,7 +216,7 @@ fn main() -> anyhow::Result<()> {
216
216
217
217
// Example: Calculate greeks for an instrument
218
218
let instrument_id = InstrumentId :: from ( "SPY.AMEX" ) ;
219
- match actor. calculate_instrument_greeks ( instrument_id. clone ( ) ) {
219
+ match actor. calculate_instrument_greeks ( instrument_id) {
220
220
Ok ( greeks) => println ! ( "Calculated greeks for {instrument_id}: {greeks:?}" ) ,
221
221
Err ( e) => println ! ( "Error calculating greeks: {e}" ) ,
222
222
}
You can’t perform that action at this time.
0 commit comments