Bitcoin Forum
May 11, 2024, 05:10:56 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2]  All
  Print  
Author Topic: Trading Bot en C# avec API Bittrex : "Par où commencer??" [Débutant] [Résolu]  (Read 352 times)
PtiPoulet (OP)
Jr. Member
*
Offline Offline

Activity: 42
Merit: 2

Nothing Really Matters... :)


View Profile
July 18, 2018, 04:44:32 PM
 #21

Tiens c'est la première fois que je vois un sujet résolu, marqué dans le titre.
Ca pourrait être un amélioration. Surtout pour les demandes d'aide, quand pensez vous ?
Si le sujet n'est pas "résolu" alors c'est qu'il n'y a personne qui cherche....où qu'il n'y a en faite pas de problèmes à résoudre ! Smiley

All we are is dust in the wind !
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
JollyHash
Full Member
***
Offline Offline

Activity: 322
Merit: 117



View Profile
July 18, 2018, 04:46:03 PM
 #22

Avec le nombre de questions qui sont posé chaques jours ?
Je ne dis pas que tous les sujets peuvent être marqué résolut Wink

◆  ◆  ◆  ◇      P L A Z A      ◇  ◆  ◆  ◆            The Intersection of Lifestyle & Technology
[ WHITEPAPER ]     PRE-SALE Starts  │  March 15th, 2018     [ ANN THREAD ]
TELEGRAM        GITHUB       MEDIUM        YOUTUBE        TWITTER        FLIPBOARD        REDDIT        LINKEDIN        FACEBOOK        EMAIL
PtiPoulet (OP)
Jr. Member
*
Offline Offline

Activity: 42
Merit: 2

Nothing Really Matters... :)


View Profile
July 18, 2018, 04:46:45 PM
 #23

Au début j demandais de l'aide....mais maintenant c'est plus devenu un partage de connaissance pour les plus débutants comme je le suis.... Wink vu que j'arrive à trouver réponse à mes questions....Vive le partage ! Smiley

All we are is dust in the wind !
PtiPoulet (OP)
Jr. Member
*
Offline Offline

Activity: 42
Merit: 2

Nothing Really Matters... :)


View Profile
July 18, 2018, 04:59:20 PM
Last edit: July 18, 2018, 05:09:31 PM by PtiPoulet
 #24

d'ailleurs j'ai une question : il est enregistré où mon projet dans MVS si je veux partager les sources de mon code sur Github??? sans avoir à copier ici un truc qui pourrait filer mal au crâne aux moins aguéris? Smiley Huh Huh J'ai pas "Enregistrer-sous" comme dans word?Huh Huh

All we are is dust in the wind !
PtiPoulet (OP)
Jr. Member
*
Offline Offline

Activity: 42
Merit: 2

Nothing Really Matters... :)


View Profile
July 18, 2018, 05:13:28 PM
 #25

ah c'est bon j'ai trouvé...pas simple tout ça...

C:\Users\"Votre nom du compte sur le PC"\source\repos\WindowsFormsApp3

Smiley

All we are is dust in the wind !
JollyHash
Full Member
***
Offline Offline

Activity: 322
Merit: 117



View Profile
July 18, 2018, 05:43:00 PM
 #26

Tu sais que tu as une très jolie fonction qui te permes d'éditer tes messages ?
Ça t'évitera tous les désagréments qui peuvent venir à faire des poste à la suite Wink



◆  ◆  ◆  ◇      P L A Z A      ◇  ◆  ◆  ◆            The Intersection of Lifestyle & Technology
[ WHITEPAPER ]     PRE-SALE Starts  │  March 15th, 2018     [ ANN THREAD ]
TELEGRAM        GITHUB       MEDIUM        YOUTUBE        TWITTER        FLIPBOARD        REDDIT        LINKEDIN        FACEBOOK        EMAIL
PtiPoulet (OP)
Jr. Member
*
Offline Offline

Activity: 42
Merit: 2

Nothing Really Matters... :)


View Profile
July 18, 2018, 06:24:18 PM
Last edit: July 18, 2018, 06:36:13 PM by PtiPoulet
 #27

J'pense que j'incommode certain...Je suis malheureusement ultra sensible à la susceptibilité négative...j vais voir ailleurs avec mon bot....Sad ....zavez le github...stay tune.Wink

All we are is dust in the wind !
PtiPoulet (OP)
Jr. Member
*
Offline Offline

Activity: 42
Merit: 2

Nothing Really Matters... :)


View Profile
July 28, 2018, 04:10:37 PM
Last edit: July 28, 2018, 05:28:05 PM by PtiPoulet
 #28

Bande de Kinoton ! Smiley

Normalement y a plus un seul bugg!!! j'ai dû dupliquer mon cerveau à la puissance 10000 pour en arriver à bout...: https://github.com/PtiPoulet/SurriBot

Smiley enjoy Grin

All we are is dust in the wind !
PtiPoulet (OP)
Jr. Member
*
Offline Offline

Activity: 42
Merit: 2

Nothing Really Matters... :)


View Profile
July 29, 2018, 06:48:58 PM
 #29

Ché bon chat!!!!!?Huh (on intègre la news via "cryptopanic" pour diminuer le risque management à r=r-1):

        private void backgroundWorker5_DoWork(object sender, DoWorkEventArgs e)
        {

            //****************************************CryptoPanic*******************************************  
            try
            {
                string url = "https://cryptopanic.com/api/posts/?auth_token=YOURAPIKEYcurrencies=" + Curr1.ToString()+","+Curr2.ToString();
                string json = new WebClient().DownloadString(url);
                var dataDeserialized = JsonConvert.DeserializeObject<CryptoPanic.RootObject>(json);
                dt_CryptoPanic.Clear();
                try
                {
                    for (int b = 0; b <= dataDeserialized.results.Count - 1; b++)
                    {
                        dt_CryptoPanic.Rows.Add(
                    dataDeserialized.results.domain,

                    dataDeserialized.results.votes.negative,
                    dataDeserialized.results.votes.positive,
                    dataDeserialized.results.votes.important,
                    dataDeserialized.results.votes.liked,
                    dataDeserialized.results.votes.disliked,
                    dataDeserialized.results.votes.lol,
                    dataDeserialized.results.votes.toxic,
                    dataDeserialized.results.votes.saved,

                    dataDeserialized.results.source.domain,
                    dataDeserialized.results.source.title,
                    dataDeserialized.results.source.region,
                    dataDeserialized.results.source.path,

                    dataDeserialized.results.title,
                    dataDeserialized.results.published_at,
                    dataDeserialized.results.slug,

                    dataDeserialized.results.currencies[0].code,
                    dataDeserialized.results.currencies[0].title,
                    dataDeserialized.results.currencies[0].slug,
                    dataDeserialized.results.currencies[0].url,

                    dataDeserialized.results.id,
                    dataDeserialized.results.created_at,
                    dataDeserialized.results.url
                    );
                    }
                }
                catch (InvalidOperationException ex)
                {
                    MessageBox.Show(ex.Message, "BGW5 Second Try");
                }
            }
            catch (InvalidOperationException ex)
            {
                MessageBox.Show(ex.Message, "BGW5 Premier Try");
            }
        }

        private void backgroundWorker5_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            dataGridView2.Rows.Clear();
            for (int c = 0; c <= dt_CryptoPanic.Rows.Count - 1; c++)
            {
                dataGridView2.Rows.Add(
                //dt_CryptoPanic.Rows[c].ItemArray[0],//domain
                dt_CryptoPanic.Rows[c].ItemArray[1],//negative
                dt_CryptoPanic.Rows[c].ItemArray[2],//positive
                dt_CryptoPanic.Rows[c].ItemArray[3],//important
                dt_CryptoPanic.Rows[c].ItemArray[4],//liked
                dt_CryptoPanic.Rows[c].ItemArray[5],//disliked
                dt_CryptoPanic.Rows[c].ItemArray[6],//lol
                dt_CryptoPanic.Rows[c].ItemArray[7],//toxic
                //dt_CryptoPanic.Rows[c].ItemArray[8],//saved
                dt_CryptoPanic.Rows[c].ItemArray[9],//source_domaine
                //dt_CryptoPanic.Rows[c].ItemArray[10],//source_title
                //dt_CryptoPanic.Rows[c].ItemArray[11],//source_region
                //dt_CryptoPanic.Rows[c].ItemArray[12],//source_path
                dt_CryptoPanic.Rows[c].ItemArray[13],//title
                dt_CryptoPanic.Rows[c].ItemArray[14],//published_at
                //dt_CryptoPanic.Rows[c].ItemArray[15],//slug
                dt_CryptoPanic.Rows[c].ItemArray[16]//currencies_code
                //dt_CryptoPanic.Rows[c].ItemArray[17],//currencies_title
                //dt_CryptoPanic.Rows[c].ItemArray[18],//currencies_slug
                //dt_CryptoPanic.Rows[c].ItemArray[19],//currencies_url
                //dt_CryptoPanic.Rows[c].ItemArray[20],//id
                //dt_CryptoPanic.Rows[c].ItemArray[21]//created_at
                //dt_CryptoPanic.Rows[c].ItemArray[22]//url
                );
            }
            dataGridView2.ClearSelection();
            for (int c = 0; c <= dataGridView2.Rows.Count - 1; c++)
            {
                if (Convert.ToInt32(dataGridView2.Rows[c].Cells[0].Value) >0)
                {
                    dataGridView2.Rows[c].Cells[0].Style.BackColor = Color.Red;
                }
                if (Convert.ToInt32(dataGridView2.Rows[c].Cells[1].Value) > 0)
                {
                    dataGridView2.Rows[c].Cells[1].Style.BackColor = Color.Green;
                }
                if (Convert.ToInt32(dataGridView2.Rows[c].Cells[2].Value) > 0)
                {
                    dataGridView2.Rows[c].Cells[2].Style.BackColor = Color.Yellow;
                }
                if (Convert.ToInt32(dataGridView2.Rows[c].Cells[3].Value) > 0)
                {
                    dataGridView2.Rows[c].Cells[3].Style.BackColor = Color.Blue;
                }
                if (Convert.ToInt32(dataGridView2.Rows[c].Cells[4].Value) > 0)
                {
                    dataGridView2.Rows[c].Cells[4].Style.BackColor = Color.Fuchsia;
                }
                if (Convert.ToInt32(dataGridView2.Rows[c].Cells[5].Value) > 0)
                {
                    dataGridView2.Rows[c].Cells[5].Style.BackColor = Color.White;
                    dataGridView2.Rows[c].Cells[5].Style.ForeColor = Color.Black;
                }
                if (Convert.ToInt32(dataGridView2.Rows[c].Cells[6].Value) > 0)
                {
                    dataGridView2.Rows[c].Cells[6].Style.BackColor = Color.Red;
                }
            }
            TraceNews();
            timer3.Start();
        }
        private void TraceNews()
        {
            int Neg_count = 0;
            int Pos_count = 0;
            int Imp_count = 0;
            int Lik_count = 0;
            int Dis_count = 0;
            int Lol_count = 0;
            int Tox_count = 0;
            for (int r = 0; r <= dataGridView2.Rows.Count - 1; r++)
            {
                Neg_count = Neg_count + Convert.ToInt32(dataGridView2.Rows[r].Cells[0].Value);
                Pos_count = Pos_count + Convert.ToInt32(dataGridView2.Rows[r].Cells[1].Value);
                Imp_count = Imp_count + Convert.ToInt32(dataGridView2.Rows[r].Cells[2].Value);
                Lik_count = Lik_count + Convert.ToInt32(dataGridView2.Rows[r].Cells[3].Value);
                Dis_count = Dis_count + Convert.ToInt32(dataGridView2.Rows[r].Cells[4].Value);
                Lol_count = Lol_count + Convert.ToInt32(dataGridView2.Rows[r].Cells[5].Value);
                Tox_count = Tox_count + Convert.ToInt32(dataGridView2.Rows[r].Cells[6].Value);
            }
            chart3.Series[0].Points.Clear();
            chart3.Series[1].Points.Clear();
            chart3.Series[2].Points.Clear();
            chart3.Series[3].Points.Clear();
            chart3.Series[4].Points.Clear();
            chart3.Series[5].Points.Clear();
            chart3.Series[6].Points.Clear();
        
            chart3.Series["Negative"].Points.AddY(Neg_count);
            chart3.Series["Positive"].Points.AddY(Pos_count);
            chart3.Series["Important"].Points.AddY(Imp_count);
            chart3.Series["Liked"].Points.AddY(Lik_count);
            chart3.Series["Disliked"].Points.AddY(Dis_count);
            chart3.Series["Lol"].Points.AddY(Lol_count);
            chart3.Series["Toxic"].Points.AddY(Tox_count);

            chart3.Series["Negative"].IsValueShownAsLabel = true;
            chart3.Series["Negative"].LabelFormat = "{#}";
            chart3.Series["Negative"].LabelForeColor = Color.White;
            chart3.Series["Positive"].IsValueShownAsLabel = true;
            chart3.Series["Positive"].LabelFormat = "{#}";
            chart3.Series["Positive"].LabelForeColor = Color.White;
            chart3.Series["Important"].IsValueShownAsLabel = true;
            chart3.Series["Important"].LabelFormat = "{#}";
            chart3.Series["Important"].LabelForeColor = Color.White;
            chart3.Series["Liked"].IsValueShownAsLabel = true;
            chart3.Series["Liked"].LabelFormat = "{#}";
            chart3.Series["Liked"].LabelForeColor = Color.White;
            chart3.Series["Disliked"].IsValueShownAsLabel = true;
            chart3.Series["Disliked"].LabelFormat = "{#}";
            chart3.Series["Disliked"].LabelForeColor = Color.White;
            chart3.Series["Lol"].IsValueShownAsLabel = true;
            chart3.Series["Lol"].LabelFormat = "{#}";
            chart3.Series["Lol"].LabelForeColor = Color.White;
            chart3.Series["Toxic"].IsValueShownAsLabel = true;
            chart3.Series["Toxic"].LabelFormat = "{#}";
            chart3.Series["Toxic"].LabelForeColor = Color.White;
            //chart3.ChartAreas[0].AxisX.Maximum = 2;
            chart3.ChartAreas[0].RecalculateAxesScale();
            
            //chart3.ChartAreas[0].AxisY.Maximum = 10;
        }
    }
}

All we are is dust in the wind !
Pages: « 1 [2]  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!