.NET and Unity3D-compatible (Desktop, Mobile, WebGL) ApiClient for AtomicMarket
Requires Unity 2019.1+ with .NET 4.x+ Runtime
This package can be included into your project by either:
- Installing the package via Unity's Package Manager (UPM) in the editor (recommended).
- Importing the .unitypackage which you can download here.
- Manually add the files in this repo.
- Installing it via NuGet.
In your Unity project:
-
Open the Package Manager Window/Tab
-
Click on + icon and then click on "Add Package From Git URL"
-
Enter URL:
https://github.com/liquiidio/AtomicMarketApiClient.git#upm
Download the UnityPackage here.
Then in your Unity project:
-
Open up the import a custom package window
-
Navigate to where you downloaded the file and open it.
-
Check all the relevant files needed (if this is a first time import, just select ALL) and click on import.
Download the latest Release.
Then in your Unity project, copy the sources from AtomicMarketApiClient
into your Unity Assets
directory.
> dotnet add package Liquiid.io.AtomicMarket
PM> Install-Package Liquiid.io.AtomicMarket
.NET and Unity3D-compatible (Desktop, Mobile, WebGL) ApiClient for the different APIs. Endpoints have its own set of parameters that you may build up and pass in to the relevant function.
var assetsApi = AtomicAssetsApiFactory.Version1.AssetsApi;
var assets = await assetsApi.Assets();
assets.Data.ToList().ForEach(a => Console.WriteLine(a.AssetId));
1099567200114
1099567200113
1099567200112
1099567200111
1099567200110
1099567200109
1099567200108
1099567200107
1099567200106
...
var assetsApi = AtomicAssetsApiFactory.Version1.AssetsApi;
var builder = new AssetsUriParameterBuilder().WithLimit(1);
var assets = await assetsApi.Assets(builder);
assets.Data.ToList().ForEach(a => Console.WriteLine(a.AssetId));
1099567200114
1099567200113
1099567200112
1099567200111
1099567200110
1099567200109
1099567200108
1099567200107
1099567200106
....