示例#1
0
 private void PublicAPI_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (socket != null)
     {
         socket.OnDataPairs        -= Socket_OnDataPairs;
         socket.OnDataPairsDetail  -= Socket_OnDataPairsDetail;
         socket.OnDataOrderbook    -= Socket_OnDataOrderbook;
         socket.OnDataRecentTrades -= Socket_OnDataRecentTrades;
         socket.OnDataLastPrice    -= Socket_OnDataLastPrice;
         socket.OnDataPriceByTime  -= Socket_OnDataPriceByTime;
     }
     socket?.Send(Subs.UnsubsAll());
 }
示例#2
0
        private void UserAPI_FormClosed(object sender, FormClosedEventArgs e)
        {
            if (socket != null)
            {
                socket.OnDataPairs    -= Socket_OnDataPairs;
                socket.OnDataBoxState -= Socket_OnDataBoxState;
                socket.OnDataBalances -= Socket_OnDataBalances;
                socket.OnDataBalance  -= Socket_OnDataBalance;
                socket.OnDataOrders   -= Socket_OnDataOrders;
                socket.OnDataDeals    -= Socket_OnDataDeals;
                socket.OnDataMessages -= Socket_OnDataMessages;
            }

            socket?.Send(Subs.UnsubsAll());
        }
示例#3
0
 private void UnsubsAll_Click(object sender, EventArgs e)
 {
     socket.Send(Subs.UnsubsAll());
 }