Skip to content

IAssetConverter

Summary

Its an interface for converting an asset / currency value to another asset / currency value.

Signature

1
public abstract interface IAssetConverter

Namespace

cAlgo.API.Internals

Examples

1
 var convertResult = AssetConverter.Convert(10, "USD", "CAD");

Methods

Convert (4)

Convert (1 of 4)

Summary

Converts an asset to another asset.

Signature

1
public abstract double Convert(double value, Asset from, Asset to)

Parameters

Name Type Description
value double The value you want to convert from Asset
from Asset Actual or current asset of the value
to Asset Target asset

Return Value

double

Related Tutorials

Convert (2 of 4)

Summary

Converts an asset to another asset.

Signature

1
public abstract double Convert(double value, string from, string to)

Parameters

Name Type Description
value double The value you want to convert from Asset
from string Actual or current asset of the value
to string Target asset

Return Value

double

Related Tutorials

Convert (3 of 4)

Summary

Converts an asset to another asset.

Signature

1
public abstract double Convert(double value, Asset from, string to)

Parameters

Name Type Description
value double The value you want to convert from Asset
from Asset Actual or current asset of the value
to string Target asset name

Return Value

double

Related Tutorials

Convert (4 of 4)

Summary

Converts an asset to another asset.

Signature

1
public abstract double Convert(double value, string from, Asset to)

Parameters

Name Type Description
value double The value you want to convert from Asset
from string Actual or current asset name of the value
to Asset Target asset

Return Value

double

Related Tutorials