jdnc has joined #stellar-dev
koolhead17 has joined #stellar-dev
jdnc has quit [Remote host closed the connection]
jdnc has joined #stellar-dev
koolhead17 has quit [Remote host closed the connection]
de_henne has quit [Ping timeout: 264 seconds]
de_henne has joined #stellar-dev
jdnc has quit [Remote host closed the connection]
sv-logger has joined #stellar-dev
<stellar-slack> <matschaffer> @meetreks: what repo are you using for the stellar_path_find test?
jdnc has joined #stellar-dev
jdnc has quit [Remote host closed the connection]
koolhead17 has joined #stellar-dev
<stellar-slack> <meetreks> This is my query
<stellar-slack> <meetreks> sending account
<stellar-slack> <meetreks> gpHUkTY9c7qviqSbAkPMm5v9ZyTDho9GAE
<stellar-slack> <meetreks> receiving account
<stellar-slack> <meetreks> gBuYT5AQpjw1mEiDBJNJshtV3GyV5A2UKA
<stellar-slack> <meetreks> Issuer
<stellar-slack> <meetreks> gLanQde43yv8uyvDyn2Y8jn9C9EuDNb1HF
<stellar-slack> <meetreks> I want to know, what paths are there
<stellar-slack> <meetreks> for standard international currencies
<stellar-slack> <matschaffer> this is all on horizon-testnet?
<stellar-slack> <meetreks> http://test.stellar.org|test.stellar.org
<stellar-slack> <meetreks> 9002
<stellar-slack> <meetreks> when I run it
<stellar-slack> <meetreks> I always get the path empty
koolhead17 has quit [Ping timeout: 264 seconds]
<stellar-slack> <meetreks> Equivalent Ripple path finds return me values in the path fields
<stellar-slack> <matschaffer> ah stellard testnet
<stellar-slack> <meetreks> Yes
<stellar-slack> <meetreks> thats correct
<stellar-slack> <meetreks> I sued it because
<stellar-slack> <meetreks> technically I will only have to change the config
<stellar-slack> <meetreks> to http://live.stellard.org|live.stellard.org
<stellar-slack> <meetreks> to go live
<stellar-slack> <meetreks> isnt that what it is supposed to be?
<stellar-slack> <matschaffer> it’s just that shouldn’t be much longer before stellar-core is ready and that network/API is deprecated
<stellar-slack> <meetreks> both live & test?
<stellar-slack> <matschaffer> yep
<stellar-slack> <meetreks> so any existing customers?
<stellar-slack> <meetreks> all migrated to core?
<stellar-slack> <matschaffer> plan is to migrate
<stellar-slack> <matschaffer> yep
<stellar-slack> <meetreks> but what do they use now?
<stellar-slack> <matschaffer> live
<stellar-slack> <meetreks> surely they must connect to http://live.stellar.org|live.stellar.org isnt it?
<stellar-slack> <matschaffer> today, yes
<stellar-slack> <meetreks> Ok
<stellar-slack> <meetreks> so
<stellar-slack> <meetreks> should I chnage my API calls
<stellar-slack> <meetreks> to match this for stellar core?
<stellar-slack> <meetreks> how can I make sure that I know I am getting the best path from stellar?
<stellar-slack> <meetreks> I am willing to switch to live accounts
<stellar-slack> <meetreks> if you can let me know any test accounts I can use for checking purposes
<stellar-slack> <matschaffer> so you’re using https://www.stellar.org/api/#api-find_path ?
<stellar-slack> <meetreks> no
<stellar-slack> <meetreks> I am using static_path_find
<stellar-slack> <meetreks> client.call( { "id": row, "method": "static_path_find", "params": [ { "source_account": sourceAcc, "destination_account": destAcc, "destination_amount": { "currency": destCurr, "value": destAmount, "issuer": issuer
<sacarlson> I have an open order you can play with on test.stellar.org for "CHP" to native
<sacarlson> if you want I will setup other orders for you to play with
<stellar-slack> <meetreks> That will be great
<stellar-slack> <meetreks> So this is is want I want to set up
<sacarlson> I havn't quite figured out how to find orders without the account
<stellar-slack> <meetreks> Source Account: gpHUkTY9c7qviqSbAkPMm5v9ZyTDho9GAE
<stellar-slack> <meetreks> Destination Account: gBuYT5AQpjw1mEiDBJNJshtV3GyV5A2UKA
<stellar-slack> <meetreks> Issuer: Please let me know which Issuer I can use
<stellar-slack> <meetreks> currncies
<stellar-slack> <meetreks> USD:EUR: JPN:CNY:AUS:GBP
<sacarlson> I setup the first issuer as the same as the account that sent it
<stellar-slack> <meetreks> so issuer = from account?
<sacarlson> it can be
<stellar-slack> <meetreks> Ok,
<sacarlson> I'm not sure if the issuer can't be just any random number
<stellar-slack> <meetreks> SO will you set up some open orders so that I can try now
<sacarlson> I can't setup the orders from your source account as I need the secreet key to do that
<sacarlson> but I can setup with accounts that I have
<stellar-slack> <meetreks> we can do both
<sacarlson> I also found I needed a deposit of more than 30 str to do it
<stellar-slack> <meetreks> sf2GCNjmvf5Ng8Dak4bAmuYqYBk9hkZuFqMMQiLYdEf3BRMX1GW
<stellar-slack> <meetreks> secret key for the sending account
<sacarlson> does it have any str in it?
<sacarlson> you should deposit no less than 100_000000 I put 500_000000 in mine before I got it working
<stellar-slack> <meetreks> I think yes
<sacarlson> so what is the pair?
<stellar-slack> <meetreks> OK
<stellar-slack> <meetreks> pair?
<sacarlson> acc sec
<sacarlson> gpHUkTY9c7qviqSbAkPMm5v9ZyTDho9GAE sf2GCNjmvf5Ng8Dak4bAmuYqYBk9hkZuFqMMQiLYdEf3BRMX1GW I should assume?
<stellar-slack> <meetreks> One Sec
<stellar-slack> <meetreks> gpHUkTY9c7qviqSbAkPMm5v9ZyTDho9GAE sf2GCNjmvf5Ng8Dak4bAmuYqYBk9hkZuFqMMQiLYdEf3BRMX1GW
<stellar-slack> <meetreks> one account
<stellar-slack> <meetreks> Destination account is as follows
<stellar-slack> <meetreks> gBuYT5AQpjw1mEiDBJNJshtV3GyV5A2UKA s3wXzQDc638s3dYrrfJbF1nNQSsUW1JATBinLGb8VjQuaXiay3F
<sacarlson> for destination you don't need the secret key
<sacarlson> I'll check the account to see if it's funded with enuf str
pixelbeat has joined #stellar-dev
<stellar-slack> <meetreks> Okies
pixelb has quit [Ping timeout: 250 seconds]
<sacarlson> ok I looked at the account it has 999999960 str with no lines of credit
<sacarlson> so I'll setup usd:eur
<stellar-slack> <meetreks> Can you teach me how you are doing this?
<sacarlson> yes I've documented examples I can share with you
<sacarlson> I've only done it one time with native so it might not be perfect
<stellar-slack> <meetreks> OK, thanks
<stellar-slack> <meetreks> I might need to learn it for future reference
<stellar-slack> <matschaffer> thanks so much for this btw, sacarlson - you know the stellard api much better than I do
<stellar-slack> <matschaffer> looking forward to seeing your examples for my own education
<sacarlson> ya and bummer I will have to learn a new one ha ha
<sacarlson> I was thinking of writing a back compatible lib so you can run the old with the new
<stellar-slack> <matschaffer> that’d be pretty amazing of you
<sacarlson> so for quick change you just run it over that lib to the new core
<stellar-slack> <matschaffer> I’m sure other integrators would appreciated it
<sacarlson> that's what you people that are writing it should have thought of from day one
<stellar-slack> <matschaffer> s/appreciated/appreciate/
<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> "account" : "gpHUkTY9c7qviqSbAkPMm5v9ZyTDho9GAE",
<sacarlson> "offers" : [],
<sacarlson> "status" : "success"
<sacarlson> so I must have done something wrong?
TheSeven has quit [Ping timeout: 246 seconds]
<stellar-slack> <meetreks> posible
<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?
TheSeven has joined #stellar-dev
<sacarlson> "TakerPays": "1000000000"
<sacarlson> instead of "TakerGets": {
<sacarlson> "currency": "CHP",
<sacarlson> "value": "100.123",
<sacarlson> "issuer": "gLanQde43yv8uyvDyn2Y8jn9C9EuDNb1HF"
<sacarlson> },
<stellar-slack> <meetreks> this is the commandline I am trying to simulate
<stellar-slack> <meetreks> { "command": "find_path", "id": 1234567, "subcommand": "create", "source_account": "gpHUkTY9c7qviqSbAkPMm5v9ZyTDho9GAE", "destination_account": "gBuYT5AQpjw1mEiDBJNJshtV3GyV5A2UKA", "destination_amount": { "currency": "STR", "value": "1000000000", "issuer": "gpHUkTY9c7qviqSbAkPMm5v9ZyTDho9GAE" } }
<stellar-slack> <meetreks> but i get
<stellar-slack> <meetreks> results: { "error": "dstAmtMalformed", "error_code": 42, "error_message": "Destination amount/currency/issuer is malformed.", "id": 1234567, "request": { "command": "find_path", "destination_account": "gBuYT5AQpjw1mEiDBJNJshtV3GyV5A2UKA", "destination_amount": { "currency": "STR", "issuer": "gpHUkTY9c7qviqSbAkPMm5v9ZyTDho9GAE", "value": "1000000000" }, "id": 1
<stellar-slack> "gpHUkTY9c7qviqSbAkPMm5v9ZyTDho9GAE", "subcommand": "create" }, "status": "error", "type": "response" }
<sacarlson> I guess this is the java lib format
<sacarlson> just take out currecy and value and just put the number "1000000000"
<sacarlson> or there is no issuer in str also
<sacarlson> it's just "destination_amount": "100000000"
<sacarlson> oh and yes STR ends up being value/1000000 as it's represented as an integer
<stellar-slack> <meetreks> now I get the following result
<stellar-slack> <meetreks> results: { "alternatives": [], "destination_account": "gBuYT5AQpjw1mEiDBJNJshtV3GyV5A2UKA", "destination_amount": "1000000000", "id": 1234567, "source_account": "gpHUkTY9c7qviqSbAkPMm5v9ZyTDho9GAE", "type": "find_path" }
<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> { "command": "account_offers", "id": 1234567, "account": "gpHUkTY9c7qviqSbAkPMm5v9ZyTDho9GAE" }
<sacarlson> yes with no offers correct?
<sacarlson> with no lines of credit you can't setup offers
<stellar-slack> <meetreks> results: { "alternatives": [], "destination_account": "gBuYT5AQpjw1mEiDBJNJshtV3GyV5A2UKA", "destination_amount": "1000000000", "id": 1234567, "source_account": "gpHUkTY9c7qviqSbAkPMm5v9ZyTDho9GAE", "type": "find_path" }
<sacarlson> I could be wrong
<sacarlson> no ballance no trade simple as that
<stellar-slack> <meetreks> But I have some balance rigght
<sacarlson> no you have no ballance in USD or EUR
<sacarlson> but I've just setup a line of credit for your account with "gLanQde43yv8uyvDyn2Y8jn9C9EuDNb1HF"
<sacarlson> now I'll have "gLanQde43yv8uyvDyn2Y8jn9C9EuDNb1HF" send you some USD and EUR
<sacarlson> lets say 10,000 each
<stellar-slack> <meetreks> OK
<stellar-slack> <meetreks> can i see my balances now
<sacarlson> ok now you have money to trade with in eur and usd
<sacarlson> people that want to buy them have to accept the issure that the money if from to buy them
<sacarlson> so you will have to setup trust on another account that accepts usd and or eur from "gLanQde43yv8uyvDyn2Y8jn9C9EuDNb1HF"
<sacarlson> and they need to have some money also to trade with that your "gpHUkTY9c7qviqSbAkPMm5v9ZyTDho9GAE" will accept in return
<sacarlson> so can you now see your ballances?
<stellar-slack> <meetreks> this is what my account_info says
<stellar-slack> <meetreks> { "result": { "account_data": { "Account": "gpHUkTY9c7qviqSbAkPMm5v9ZyTDho9GAE", "Balance": "999999930", "Flags": 131072, "LedgerEntryType": "AccountRoot", "OwnerCount": 2, "PreviousTxnID": "5CDFF1AF394B72005D1B14A937D54D2022AA3A39D3ABAE5F27962412133FA9B3", "PreviousTxnLgrSeq": 969085, "Sequence": 8, "index": "C747C9C372DC0A6D60DB4F14BCA79F1A73A2E9
<stellar-slack> "ledger_current_index": 969162, "status": "success" } }
koolhead17 has joined #stellar-dev
<stellar-slack> <meetreks> and when I run accoun currencies
<stellar-slack> <meetreks> it says
<stellar-slack> <meetreks> { "result": { "ledger_current_index": 969181, "receive_currencies": [ "EUR", "USD" ], "send_currencies": [], "status": "success" } }
<stellar-slack> <meetreks> so which means I can send EUR and USD
<stellar-slack> <meetreks> will try my destination now
<stellar-slack> <meetreks> My Destination currencies says
<stellar-slack> <meetreks> { "result": { "ledger_current_index": 969188, "receive_currencies": [], "send_currencies": [], "status": "success" } }
<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
<stellar-slack> <meetreks> { "result": { "alternatives": [ { "paths_computed": [], "source_amount": { "currency": "EUR", "issuer": "gLanQde43yv8uyvDyn2Y8jn9C9EuDNb1HF", "value": "2" } } ], "destination_account": "gpHUkTY9c7qviqSbAkPMm5v9ZyTDho9GAE", "destination_currencies": [ "EUR", "USD", "STR" ], "status": "success" } }
<stellar-slack> <meetreks> I mean I am trying just the static_path_find
<stellar-slack> <meetreks> I am not sending real money
<stellar-slack> <meetreks> how can I get the values in paths_computed[]
<sacarlson> don't just ahead of your self you can't trade without a ballance
<sacarlson> so fix that first
<stellar-slack> <meetreks> how do I fix this
<stellar-slack> <meetreks> How do I get some balances in my account for EUR and USD
<stellar-slack> <meetreks> also
<sacarlson> I think the problem may be that I have not enuf str in my account to do the transaction
<stellar-slack> <meetreks> I dont think for receiving money I need a balance
<stellar-slack> <meetreks> OK
<sacarlson> you need str to do transactions as they cost
<stellar-slack> <meetreks> shall I try ine
<stellar-slack> <meetreks> 1
<sacarlson> send my account some str
<sacarlson> "gLanQde43yv8uyvDyn2Y8jn9C9EuDNb1HF" needs some str ha ha
<sacarlson> just 500000000 should do it
<sacarlson> also there is a minium deposit on the number of assets that you hold that I'm don't recall the number off the top of my head
<stellar-slack> <meetreks> Hey I dont get it
<sacarlson> what don't you get?
<stellar-slack> <meetreks> Is there a way I can get some Balances into my account
<sacarlson> yes that's what we are working on doing
<sacarlson> don't you have any str to send my account?
<stellar-slack> <meetreks> Yes
<sacarlson> I can go dig some up if not
<stellar-slack> <meetreks> how do i send it?
<stellar-slack> <meetreks> from command line?
<sacarlson> don't you know how to send money? that's step one
<sacarlson> first learn how to send str
<sacarlson> how every you want
jdnc has joined #stellar-dev
<sacarlson> seems you skiped a few classes before you attempted this task
<sacarlson> when you figure this out your going to teach me how to setup a multi signed escrow transaction in exchange
jdnc has quit [Remote host closed the connection]
<sacarlson> and your going to help me test my P2P poker system
dobson has quit [Quit: Leaving]
<sacarlson> oh and don't send the money from "gpHUkTY9c7qviqSbAkPMm5v9ZyTDho9GAE" as it will need money too
<sacarlson> str I mean
<sacarlson> or native or ....
<stellar-slack> <meetreks> but it says i have got 9999999950
<stellar-slack> <meetreks> in native
<sacarlson> yes I know lets keep it that way
<sacarlson> don't you have other accounts?
<sacarlson> I"ve used most of mine to autocreate poker player accounts
<stellar-slack> <meetreks> I have one account
<stellar-slack> <meetreks> gBuYT5AQpjw1mEiDBJNJshtV3GyV5A2UKA
<stellar-slack> <meetreks> but it has got nothing
<stellar-slack> <meetreks> I guess
<sacarlson> well you can't do transaction to accounts with nothing so maybe that's anther of your problems
jdnc has joined #stellar-dev
<stellar-slack> <meetreks> well my previous one had a lot of balance
<sacarlson> I'll go dig up some money it will just take more tim
<stellar-slack> <meetreks> but it also didnt work
<sacarlson> you should keep you ballance to at least 500000000 in these transactions remember the rule of minimum ballance per asset
<stellar-slack> <meetreks> AH OK
<stellar-slack> <meetreks> yes
dobson has joined #stellar-dev
<sacarlson> in my poker player accounts I provide them 30000000 each to start
<stellar-slack> <meetreks> so what is the procedure to get ones balance to 500000000
<sacarlson> you get money from the faucet and transact that account to what you need the money in
<sacarlson> my poker players only hold one asset of "CHP"
<stellar-slack> <meetreks> OK
<stellar-slack> <meetreks> No, I give up
<stellar-slack> <meetreks> looks too much of an issue to get some stellars in to my account to find a path
de_henne has quit [Remote host closed the connection]
<stellar-slack> <meetreks> can you do me a favour
<sacarlson> ok I'll dig some up then
<stellar-slack> <meetreks> can you kindly try this
<sacarlson> must I do everything ha ha
<stellar-slack> <meetreks> Hey, just help
<stellar-slack> <meetreks> :)
de_henne has joined #stellar-dev
<stellar-slack> <meetreks> can you ping 2 USD from one account to another using static_path_find to another account
<stellar-slack> <meetreks> and share what paths were computed
<stellar-slack> <meetreks> you can send it to a EUR or any other equivalent account
<stellar-slack> <meetreks> so that I can work out if paths are really computed
<sacarlson> ok I got the money deposited
<stellar-slack> <meetreks> to which account?
<sacarlson> so lets see if the transaction works now
<sacarlson> facet money
<stellar-slack> <meetreks> gBuYT5AQpjw1mEiDBJNJshtV3GyV5A2UKA
<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
<stellar-slack> <meetreks> not sure sacarlson
<sacarlson> does the legacy stellar and or stellar core have this gateway lock feature as noted in this article? http://insidebitcoins.com/news/not-so-decentralized-ripple-freezes-1m-in-user-funds/31862
<sacarlson> if so maybe that's why I couldn't do the transactions on your account meetreks
<sacarlson> I haven't seen any such mention of this feature in the api docs
<stellar-slack> <meetreks> Hello
<stellar-slack> <meetreks> Can I have a non STR issuers account?
<stellar-slack> <meetreks> I just need to check if book_offers
<sacarlson> I'm not sure I know what you mean as I thought by default all accounts had STR
<stellar-slack> <meetreks> Look
<stellar-slack> <meetreks> when I simulate book_offer
<stellar-slack> <meetreks> for an EUR::USD
<stellar-slack> <meetreks> Iand use this issuer
<stellar-slack> <meetreks> gLanQde43yv8uyvDyn2Y8jn9C9EuDNb1HF
<stellar-slack> <meetreks> I get result like
<stellar-slack> <meetreks> expecting non STR issuer
<sacarlson> "gDoa5X5WKvgrdX94pGkT48GfDoMc13tAxT" ?
<sacarlson> curl -X POST https://test.stellar.org:9002 -d '
<sacarlson> {
<sacarlson> "method": "account_offers",
<sacarlson> "params": [
<sacarlson> {
<sacarlson> "account": "gDoa5X5WKvgrdX94pGkT48GfDoMc13tAxT"
<sacarlson> }
<sacarlson> ]
<sacarlson> }'
<stellar-slack> <meetreks> book_offers
<stellar-slack> <meetreks> says expected non STR issuer
<stellar-slack> <meetreks> does anything work in stellar
<sacarlson> curl -X POST https://test.stellar.org:9002 -d '
<sacarlson> {
<sacarlson> "method": "book_offers",
<sacarlson> "params": [
<sacarlson> {
<sacarlson> "taker_gets": {
<sacarlson> "issuer": "gLanQde43yv8uyvDyn2Y8jn9C9EuDNb1HF",
<sacarlson> "currency": "EUR"
<sacarlson> },
<sacarlson> "taker_pays": {
<sacarlson> "issuer": "gLanQde43yv8uyvDyn2Y8jn9C9EuDNb1HF",
<sacarlson> "currency": "USD"
<sacarlson> }
<sacarlson> }
<sacarlson> that shows the order now on the books
<sacarlson> problem I'm having is looking for all orders with any issuer
<stellar-slack> <meetreks> post me the results please
<sacarlson> don't you have a term just cut and paist it
<sacarlson> it's telling me I sent too much too fast last time
<stellar-slack> <meetreks> it says unable tpo parse
<stellar-slack> <meetreks> is your command currect
<sacarlson> in short it says this
<sacarlson> "Account" : "gDoa5X5WKvgrdX94pGkT48GfDoMc13tAxT",
<sacarlson> "Sequence" : 7,
<sacarlson> "TakerGets" : {
<sacarlson> "currency" : "EUR",
<sacarlson> "issuer" : "gLanQde43yv8uyvDyn2Y8jn9C9EuDNb1HF",
<sacarlson> "value" : "68.75"
<sacarlson> that's as much as they allow me to send here
<stellar-slack> <meetreks> OK
<stellar-slack> <meetreks> now I get a sucess message
<stellar-slack> <meetreks> but
<stellar-slack> <meetreks> I get [] as offers
<sacarlson> above is what I see in offers
<sacarlson> maybe I should paistbin it to you?
<sacarlson> I'm not sure what your doing
<sacarlson> but that's what I do and see
<stellar-slack> <meetreks> ok
<stellar-slack> <meetreks> I see the same as well
<stellar-slack> <meetreks> but
<stellar-slack> <meetreks> this is just the market rate right
<sacarlson> I added 3 more orders
<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?
<stellar-slack> <eva> I'd try any of the active gateways listed here, @scarlson https://stellartalk.org/topic/84-known-exchanges-and-gateways/
<stellar-slack> <eva> (top section)
<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]
stellar-slack has joined #stellar-dev
DomKM has joined #stellar-dev
alanz has quit [Ping timeout: 252 seconds]
gst has quit [Ping timeout: 252 seconds]
gst has joined #stellar-dev
gst has quit [Changing host]
gst has joined #stellar-dev
pixelbeat has quit [Ping timeout: 252 seconds]
<stellar-slack> <monsieurnicolas> Got the PR out for it https://github.com/stellar/stellard/pull/195
alanz has joined #stellar-dev
bittrex-richie has left #stellar-dev [#stellar-dev]
<sacarlson> to me it looks like a parse problem as this works https://www.stellar.org/viewer/#test/gLanQde43yv8uyvDyn2Y8jn9C9EuDNb1HF but this is stuck in loading https://www.stellar.org/viewer/#test/"gLanQde43yv8uyvDyn2Y8jn9C9EuDNb1HF" due to the added quotes just like when str@ripplefox.com is entered