egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Find index where MarketName has certain value

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
kiely
Voice


Joined: 11 Jun 2014
Posts: 1

PostPosted: Wed Jun 11, 2014 1:40 pm    Post subject: Find index where MarketName has certain value Reply with quote

https://github.com/kitaco/coinprice/blob/master/coinprice.tcl

I have this API
( https://bittrex.com/api/v1/public/getmarketsummaries ) where the index of the values I am trying to get, keeps changing.

I have
Code:
set cloaklast [dict get [lindex [dict get $bittrex result] 28] Last]
right now, and the 28 keeps changing.

I need to find the list value of MarketName: "BTC-CLOAK" (or any other value of MarketName) and put it in a variable to use so the index value is always kept up to date.

I think I need foreach or lsearch. I am unsure.

Thanks!
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber