<sacarlson>
otherwise it will take too long for people to migrate
<sacarlson>
but my lib will be in ruby and you don't even have a working ruby lib yet so I won't write it until thats working
<stellar-slack>
<matschaffer> good plan
<sacarlson>
so maybe in 2 year?? ha ha
<stellar-slack>
<matschaffer> yeah, pretty much everything is in flux right now. Even the core protocol
<stellar-slack>
<matschaffer> hopefully not quite that long. But migrations like this do often have a very long tail
<sacarlson>
that's ok even the original is working quite well for what I need
<stellar-slack>
<meetreks> so Can I try now sacarlson?
<stellar-slack>
<matschaffer> glad to hear it! I’ll keep this channel posted if we see anything totally out of whack there. One or two nodes at a time have a tendency to go out of sync for 10-15m at a time, but if you can still work with that, game on
<sacarlson>
meetreks sure let's give it a try
<sacarlson>
let me find my example doc
jdnc has joined #stellar-dev
<stellar-slack>
<meetreks> OK
<stellar-slack>
<meetreks> ran it
<stellar-slack>
<meetreks> no change
<stellar-slack>
<meetreks> let me check
<sacarlson>
did you check "method": "account_offers",
<sacarlson>
I havn't added this to my ruby libs so I have to us curl
<stellar-slack>
<meetreks> no
<stellar-slack>
<meetreks> I am actually trying static_path_find
<stellar-slack>
<meetreks> I am checking for values in alternatives[]
<stellar-slack>
<meetreks> so I get alternatives as []
<stellar-slack>
<meetreks> this is the result I am getting at
<stellar-slack>
<meetreks> EUR::USD for 2 eur
<stellar-slack>
<meetreks> I am not getting any options for paths
<stellar-slack>
<meetreks> sacarlson
<stellar-slack>
<meetreks> can you try 2 EUR from source to destination asking for USD
<stellar-slack>
<meetreks> can you tell me if you are getting a path?
<sacarlson>
ok I've setup an order of usd:eur on your account
<sacarlson>
now lets check the account to see if it's seen on the books
<sacarlson>
I think what I failed to do is setup a line of credit with my issuier in this case "issuer" : "gLanQde43yv8uyvDyn2Y8jn9C9EuDNb1HF",
<sacarlson>
I thought it was only the one's buying them that required to have lines of credit but I must be wrong. oh and what I originaly did was give the money from the creditor to the one that setup the order
<stellar-slack>
<jed> you guys should just build on the new API. It will be out very soon
<sacarlson>
they should work about the same and if you had examples how it was done that so do show us
<stellar-slack>
<jed> they don't work the same
<sacarlson>
and don't worry we will have the back port lib to move
<sacarlson>
they will have the same features but a supper set of them that will be emulated in the backport
<sacarlson>
it you had a working ruby lib in the new core I would already be there
<stellar-slack>
<meetreks> Hey
<stellar-slack>
<meetreks> can you let me know how STR is represented
<stellar-slack>
<meetreks> lie 2000000 for 2 STR is it?
<stellar-slack>
<meetreks> I just want to try for STR and see if I get any paths?
<stellar-slack>
<meetreks> still not alternatives[]
koolhead17 has joined #stellar-dev
<sacarlson>
well let me setup a line of credit with my creditor and send him some money to trade with
<sacarlson>
you must see the order on the books before you hope to see any paths
<stellar-slack>
<meetreks> Ok
<sacarlson>
so my guess the squence should be setup an account with credit from an issuer with the currencies you plan him to trade with
<sacarlson>
have the issuer send him some money in the curriencies you plan to trade
<sacarlson>
then setup the orders
<stellar-slack>
<meetreks> Well
<stellar-slack>
<meetreks> before that
<sacarlson>
check the order book to see that the books reflect the orders
<stellar-slack>
<meetreks> I want to know what are the paths so that I cna use the paths to return the money
<stellar-slack>
<meetreks> I mean prepare the payment and send the money to the destination using that path
<sacarlson>
then you setup another account with line of credit to that same issuer and again setup a ballance from the issuer with at least one of the curreniees
<sacarlson>
you need to setup orders before you play with paths
<sacarlson>
the paths are auto created anyway
<sacarlson>
all that is needed is the other account sets up an over laping order that will take the order already on the books
<sacarlson>
test that first
<stellar-slack>
<meetreks> no sacarlson
<stellar-slack>
<meetreks> this is exactly the same as Ripple_path_find
<stellar-slack>
<meetreks> it must return you the paths
<stellar-slack>
<meetreks> see API doco
<stellar-slack>
<meetreks> static_path_find Finds a path for a transfer.
<stellar-slack>
<meetreks> Results: alternatives List of path choices.
<sacarlson>
have you already been able to make one order on the books?
<stellar-slack>
<meetreks> No
koolhead17 has quit [Remote host closed the connection]
<stellar-slack>
<meetreks> ok
<stellar-slack>
<meetreks> lets try with your account
<stellar-slack>
<meetreks> to find a ath
<sacarlson>
then start from there. this is testnet not live. you will have to setup the orders
<sacarlson>
no your account is fine I just have to figure out how to setup the line of credit
<sacarlson>
you need to understand simple orders before you progress to paths
<stellar-slack>
<meetreks> which means my destination is not equiped to receive any currency other than native currency
koolhead17 has quit [Ping timeout: 256 seconds]
<sacarlson>
no when I checked "method": "account_lines" I see you have two lines but no ballance in ether currency so my payment didn't work for reasons I don't know
<sacarlson>
I thought I could send you the money from the issuer. so I had setup a transaction that looked to have worked but no balance on your account
<sacarlson>
so there is a step that I missed?
jdnc has quit [Remote host closed the connection]
<sacarlson>
no it seems you can reciever currencies from my account but you have none deposited so you can't send any
<stellar-slack>
<meetreks> Yes I realised it
<stellar-slack>
<meetreks> so I initated a 2 EUR from your account to mine
<stellar-slack>
<meetreks> still I dont get path
<sacarlson>
you can't send money from my account you don't have the secreet key
<sacarlson>
no I'm trying to send it to "gpHUkTY9c7qviqSbAkPMm5v9ZyTDho9GAE"
<sacarlson>
did you setup gbuy... with trust lines ?
<stellar-slack>
<meetreks> no
<stellar-slack>
<meetreks> no trust lines
<sacarlson>
well that also has to be done
<sacarlson>
trust lines to "gLanQde43yv8uyvDyn2Y8jn9C9EuDNb1HF"
<sacarlson>
ok let me try the transaction in hopes it works this time
<stellar-slack>
<meetreks> Ok
<sacarlson>
the transaction I don't see any errors so lets check that ballance
<sacarlson>
still no ballance seen with "method": "account_lines",
<sacarlson>
so I was wrong
<sacarlson>
what did I forget?
<stellar-slack>
<meetreks> :)
<sacarlson>
I"ve had my ruby program create at least 30 accounts with "CHP" what would be the difference
<sacarlson>
maybe I also have to setup trust lines on "gLanQde43yv8uyvDyn2Y8jn9C9EuDNb1HF" to trust myself?
<sacarlson>
I originaly did this but thought I didn't need to so I took it out of my code
<sacarlson>
but maybe the account had it already so didn't mater
<sacarlson>
let me try this
<sacarlson>
it seems to accept the trust myself thing
<sacarlson>
so lets see if that fixes the transaction
<sacarlson>
nope wrong again still no ballance
<sacarlson>
I must be brain farting or something
<sacarlson>
this should be simple
jdnc has quit [Remote host closed the connection]
<sacarlson>
I don't know what it was with your account that causes it not to work as I can do the transactions to another account ok
<sacarlson>
it must have some flags set that I don't know about
<sacarlson>
I will setup a fresh account with the needed ballances
jdnc has joined #stellar-dev
jdnc has quit [Read error: Connection reset by peer]
jdnc has joined #stellar-dev
jdnc has quit [Remote host closed the connection]
jdnc has joined #stellar-dev
<sacarlson>
ok meetreks I've now been able to create an account with all your currencies with 10000 ballance in each including USD:EUR: JPN:CNY:AUS:GBP
<sacarlson>
so this will be your new trading account "gDoa5X5WKvgrdX94pGkT48GfDoMc13tAxT"
<sacarlson>
it's beyond me what you might have done to your account to make it not posible to transact money on it
<sacarlson>
with all the effort I've not put into this account to set it up I'm not sure I want to send the secreet key on the open channel
<sacarlson>
I also learned that I had to wait 10 or more seconds on each transaction before another currency was accepted in payment
jdnc has quit [Remote host closed the connection]
<sacarlson>
in my second attempt to setup another account with the same currency and ballances it only worked for "CHP" and "JPN" the others didn't transact
<sacarlson>
not sure why
<sacarlson>
more time needed between transactions?
hsxuif has joined #stellar-dev
hsxuif has quit [Client Quit]
<sacarlson>
it must want more than 15 secounds as it seems only the first transaction each attempt is clearing
<sacarlson>
all the transaction results looked good
<stellar-slack>
<matschaffer> sacarlson, sounds like could be related to the ledger close rate which I’m pretty sure is 20s
<sacarlson>
cool I'll try up my time to 25 sec then
<sacarlson>
I thought it was about 10 sec so I uped it to 15 sec
<stellar-slack>
<matschaffer> I at least have a graph of what the server reports for ledger age
<stellar-slack>
<matschaffer> it varies quite a bit but the max is 18
<stellar-slack>
<matschaffer> guessing the variance is due to the zabbix polling rate
<stellar-slack>
<matschaffer> actually I see 20 if I back out to 7d view
<stellar-slack>
<matschaffer> so guessing it’s indeed 20
<stellar-slack>
<meetreks> Sacarlson
<stellar-slack>
<meetreks> let me try this now
<sacarlson>
??
<sacarlson>
when I put in 30 seconds I got the last 2 transaction to get in
<sacarlson>
even 25 seconds didn't do it
<sacarlson>
but this might be due to the fact that the first 2 transactions didn't have a delay between them then it waited 25 seconds for the last transaction and was still stuck
<sacarlson>
ok now I have two accounts with all the currencies
<sacarlson>
but I guess for your experiment you would need more to test for paths
<sacarlson>
but we can now start to set up orders
<sacarlson>
the new trade account with funds is "gnumeDpUqqim44a5Hi94wxDeVV3ofhc28x"
<stellar-slack>
<meetreks> sacarlson, hi
<stellar-slack>
<meetreks> to find the best path between Point A to B
<stellar-slack>
<meetreks> why must I set up on order
<sacarlson>
with no orders there will be no path
<sacarlson>
there is no a and b without orders
<sacarlson>
I've now setup an order "gDoa5X5WKvgrdX94pGkT48GfDoMc13tAxT" for usd and eur
<sacarlson>
see if it's on the books
<sacarlson>
ok now we have an open order
<sacarlson>
as seen with "method": "account_offers",
<sacarlson>
so now how do we setup a chain of transactions?
<sacarlson>
I guess I'll setup a counter offer on the other account that doesn't cross this order
<stellar-slack>
<meetreks> can you explain what this order does?
_whitelogger has joined #stellar-dev
<stellar-slack>
<meetreks> anyways
<stellar-slack>
<meetreks> giving it up
<stellar-slack>
<meetreks> will try and work out other things instead
<sacarlson>
oops I crossed the order so it exicuted
<sacarlson>
still have part of the order on one side open
<sacarlson>
ok finnaly I have two orders of oposite direction open
<sacarlson>
the static_path_find as far as I can tell seems to require a chain of trades to make any sense of it
<sacarlson>
what you might want to look at is "method": "book_offers", that shows what price bids are at for an issuer and currency
<sacarlson>
I wonder what we would use to look at all open orders of say EUR to USD from all issuers?
koolhead17 has joined #stellar-dev
koolhead17 has quit [Ping timeout: 246 seconds]
<stellar-slack>
<meetreks> this is so so diffrent
<stellar-slack>
<meetreks> from Ripple
<stellar-slack>
<meetreks> in Ripple
<stellar-slack>
<meetreks> there is an response straightaway
<stellar-slack>
<meetreks> but here
<stellar-slack>
<meetreks> it is a bit diffrent
<sacarlson>
meetreks so ripple has the same curl interface as stellar I would assume?
<sacarlson>
do we have any known active issuers gateways on stellar live or testnet that I can analize as I can't seem to find a way to search for orders without issuers address
<sacarlson>
that's all the orders seen for that currency pair on that issurer
<stellar-slack>
<meetreks> Yes
<stellar-slack>
<meetreks> Cool
<stellar-slack>
<meetreks> would be helpful if you can check the static_path_find in a similar way and share some results
<sacarlson>
I don't fully understand what I'm looking for with static_path_find and cant understand the results
<sacarlson>
my guess is that you need a chain of orders like a wants b b wants c c wants d d wants a
<sacarlson>
then you will see a path
<sacarlson>
but what are you really trying to acomplish with it?
<sacarlson>
so for b to get c a chain of orders would happen for everyone to get what they want?
<sacarlson>
as far as I can see the results static_path_find is a direct trade from a to b no chain is needed so none is seen in the orders I now have setup
<sacarlson>
show me the results in a busy market and maybe I will get a better understanding
Kwelstr has quit [Ping timeout: 248 seconds]
DomKM has quit [Quit: Connection closed for inactivity]
Kwelstr has joined #stellar-dev
<stellar-slack>
<scott> scarlson: I haven’t followed the full conversation, but I wanted to just provide one note about your examples using `static_path_find`: It looks like in the query you were making where you received no `alternatives` in the response you simply had the destination issuer wrong. For example, the query https://gist.github.com/nullstyle/5eb1ae3113f12ce45871 works.
sacarlson1 has joined #stellar-dev
sacarlson has quit [Ping timeout: 276 seconds]
de_henne has quit [Remote host closed the connection]
sacarlson1 has quit [Quit: Leaving.]
sacarlson has joined #stellar-dev
<sacarlson>
yes scott that's the results I get also but I don't understand what the results represent. to me it looks like path a direct path from a to b, I guess in a more complex market it would have value?
<stellar-slack>
<scott> sacarlon: I may be speaking out of turn since I don’t have a ton of experience with the way the legacy system handles pathfinding, but in my experience the values returned from path finding (in this case the `paths_computed` field) simply need to be fed into a transaction that is being constructed. If you are interested for curiosity’s or analytic’s sake, you can find some reference here: https://wiki
<stellar-slack>
still matches the legacy stellard behavior.
<stellar-slack>
<scott> Usually the only thing I care about for a given path is the `source_amount`, which is the predicted cost for a given source currency on then sending account, i.e. “If I follow this path, I will pay 100USD"
<sacarlson>
yes I think it's working fine oh I think I get it in the event it had to buy more than one order to end up with the full amount
<sacarlson>
so to get a good output we just need to put in a biger value to show more paths in the output
<sacarlson>
good being more than one paht
<sacarlson>
path
<stellar-slack>
<scott> yeah, exactly
<sacarlson>
ok then meetreks should be happy then that it works
pixelbeat has quit [Ping timeout: 250 seconds]
<sacarlson>
scott might anyone know of an active gateway address on the live.stellar.org that I might analize paths on? or a way to get a path from all issures instead of just one?
_whitelogger has joined #stellar-dev
<stellar-slack>
<scott> I think @eva would know about what accounts are used by one of the gateways, but I’m not sure. Regarding getting a path from all issuers, I believe you would need to do the analysis yourself, which will be tough given the legacy network’s state. Normally you would want to run your own node, sync with the network and then do analysis on the sqlite database that your node is writing to, but AFAIK getting s
<stellar-slack>
frustrating at the moment.
<sacarlson>
thanks scott and any different on the stellar.core software then? does it have features that allow searching paths over all issuers?
<sacarlson>
but I guess your statement of the sqlite database would be about the same in stellar.core
<sacarlson>
I looked at that <eva> but that only had there URL address not the stellar address
<sacarlson>
<eva> I'm looking for example an address like "gLanQde43yv8uyvDyn2Y8jn9C9EuDNb1HF" that's on one of those active exchanges
<stellar-slack>
<eva> depends on the individual gateway - they will each have a different address (that will usually be listed on their site. For example, with Ripple Fox, if you click through their homepage you can see that the federated address is mailto:str@ripplefox.com|str@ripplefox.com.
<stellar-slack>
<eva> to get the unfederated version of that address you could type it into the Stellar Viewer: https://www.stellar.org/viewer/
<sacarlson>
oh cool that might be what I'm looking thanks
<stellar-slack>
<eva> :)
<stellar-slack>
<scott> sacarlson: `stellar-core` takes a bit of a different tactic for path-finding… it provides none. However, the horizon api server that interfaces with stellar-core will have a pluggable path finding system that will allow others to improve or change path finding for their own specific needs. The experience will be roughly equivalent to “doing the analysis yourself” in the sense that the data exposed to
<stellar-slack>
which you can use to find available paths.
<sacarlson>
ok thanks <scott>
<stellar-slack>
<scott> anytime!
<sacarlson>
and so far https://www.stellar.org/viewer/#live/str@ripplefox.com is stock on loading so maybe I don't understand if the viewer parses addresses like these
<stellar-slack>
<eva> re: viewer, it's probably just slow due to ongoing connectivity issues, but it should still work
<stellar-slack>
<eva> afaik
<stellar-slack>
<scott> are you using chrome? connecting to stellard through chrome is busted at the moment
<sacarlson>
ok thanks <eva> and yes I'm using chrome
<sacarlson>
ok I'll try firefox
<stellar-slack>
<eva> good thinking @scott
<stellar-slack>
<eva> also, an alternate tool (community-developed) to try: v
<sacarlson>
no same problem on firefox
<sacarlson>
v?
<stellar-slack>
<scott> hmm, okay. looks like they must have rolled out the same ssl change. We’ve got some people in the office working on a solution, we’ll update here when resolved
<sacarlson>
ok
pixelbeat has joined #stellar-dev
stellar-slack has quit [Remote host closed the connection]