Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 441 Bytes

example_4.md

File metadata and controls

17 lines (12 loc) · 441 Bytes

Getting assets available for trading on the exchange

async Task GettingAllTheAssets()
{
    // Initialize the v1 assets API
    var assetsApi = AtomicMarketApiFactory.Version1.AssetsApi;

    //Getting all the assets that are available for trading on the exchange.
    var assets = await assetsApi.Assets();

    // Print their IDs on the console.
    assets.Data.ToList().ForEach(a => Console.WriteLine(a.AssetId));
}