Exemplo n.º 1
0
        public void idaxSubXKlineYExample()
        {
            /***Initialize the calling object*/
            IdaxApiWebSocketClient idaxApiWebSocketClient = IdaxConfig.wsInit();

            idaxApiWebSocketClient.callback = new WsCallback();
            /**Subscribe to myOrder**/
            idaxApiWebSocketClient.onKLineEvent(IdaxApiConstants.ETH_BTC, PeriodEnum.ONE_WEEK);
        }
Exemplo n.º 2
0
        public void idaxSubTradeEventExample()
        {
            /***Initialize the calling object*/
            IdaxApiWebSocketClient idaxApiWebSocketClient = IdaxConfig.wsInit();

            idaxApiWebSocketClient.callback = new WsCallback();
            /**Subscribe to myOrder**/
            idaxApiWebSocketClient.onTradeEvent(IdaxApiConstants.ETH_BTC);
        }
Exemplo n.º 3
0
        public void idaxSubXDepthYExample()
        {
            /***Initialize the calling object*/
            IdaxApiWebSocketClient idaxApiWebSocketClient = IdaxConfig.wsInit();

            idaxApiWebSocketClient.callback = new WsCallback();

            /**Subscribe to myOrder**/
            idaxApiWebSocketClient.onDepthXYEvent(IdaxApiConstants.ETH_BTC, int.Parse(DepthYEnum.FIFTY.GetDisplayAttribute()));
        }
Exemplo n.º 4
0
        public void myTradeExample()
        {
            /***Initialize the calling object*/
            IdaxApiWebSocketClient idaxApiWebSocketClient = IdaxConfig.wsInit();

            idaxApiWebSocketClient.callback = new WsCallback();
            SendMessage wsSendMessage = new SendMessage();
            var         wsParam       = new WsParam();

            wsParam.apiKey           = IdaxConfig.API_KEY;
            wsParam.timestamp        = DateTime.UtcNow.UnixTimeStamp().ToString();
            wsSendMessage.parameters = wsParam;
            /**Subscribe to myOrder**/
            idaxApiWebSocketClient.onMyTradeEvent(wsSendMessage);
        }