Take the following sample from here
open System
open System.Net
open System.Net.Http
open System.Threading.Tasks
open Microsoft.Extensions.Logging
open Binance.Common
open Binance.Spot
open Binance.Spot.Models
[<EntryPoint>]
let main argv =
let loggerFactory = LoggerFactory.Create(fun (builder:ILoggingBuilder) ->
builder.AddConsole() |> ignore
)
let logger = loggerFactory.CreateLogger()
let loggingHandler = new BinanceLoggingHandler(logger)
let httpClient = new HttpClient(loggingHandler)
let fiat = new Fiat(httpClient)
let result = fiat.GetFiatDepositWithdrawHistory(FiatOrderTransactionType.DEPOSIT) |> Async.AwaitTask |> Async.RunSynchronously
0
This does not compile for me, probably because I didn’t pass my API-Key anywhere. Where should i do it? F#/C# answers would be nice.
Thanks and best regards