コード例 #1
0
        static async Task Main(string[] args)
        {
            WriteLine("Coinbase Example");

            var creds = Credentials.ReadCredentials(@"..\..\..\.secrets.txt");

#if NETFRAMEWORK
            ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
#endif

            WriteLine("Making Simple API call.");
            await MakeSimpleApiCall(creds);

            WriteLine("Subscribing to Websocket Events.");
            await SubscribeToWebsocketEvents(creds);

            WriteLine("Press enter to exit program.");
            ReadLine();
        }