<stellar-slack>
<dzham> @jed: what’s the problem with source == dest? that used to work before
<stellar-slack>
<jed> That wasn't actually the issue
<stellar-slack>
<dzham> I noticed that, but you still mentioned it as a possible cause of the problem a couple of times. Just trying to understand why it would be a problem
<stellar-slack>
<dzham> Not that you can use it for much more that proofs-of-existance
<stellar-slack>
<jed> Yeah I thought it would fail. looks like it just marks it a success and returns
de_henne_ has quit [Remote host closed the connection]
de_henne has joined #stellar-dev
[7] has quit [Disconnected by services]
TheSeven has joined #stellar-dev
de_henne has quit [Remote host closed the connection]
de_henne has joined #stellar-dev
<stellar-slack>
<sacarlson> am I incorrect to assume that orders on stellar-core would be deleted after a match for the full amount of the asset being offered has found a matching order? As I'm not sure but in my test of random created orders on my standalone core seems might differ
nivah has joined #stellar-dev
<stellar-slack>
<sacarlson> after a few more test with static orders I'll run the test on the public testnet so test orders can be seen
<stellar-slack>
<sacarlson> I have been able to verify that with 1 to 1 bid ask match that the is deleted of the order books
<stellar-slack>
<sacarlson> but when I run a group of orders from two accounts something strange seems to happen and even 1 to 1 matched orders don
<stellar-slack>
<sacarlson> I'll point at horizon to see if the same thing happens on testnet
<stellar-slack>
<sacarlson> I've setup a currency pair of AAA and BBB with two accounts holding both. first 1 to 1 bid ask transaction worked ok
<stellar-slack>
<sacarlson> I'm now setting up 20 semi random orders 10 from each account
stellar-slack has quit [Remote host closed the connection]
stellar-slack has joined #stellar-dev
<stellar-slack>
<sacarlson> now all 20 are on the testnet order book but none of the orders fire. am I brain farting again? shouldn't at least some of these orders fire?
<stellar-slack>
<sacarlson> maybe the trading rule is setup as all or nothing? if not all of an order is filled no partial orders are fired?
<stellar-slack>
<fredolafritte> anyone tried to cancel an order ?
<stellar-slack>
<fredolafritte> it used to be that cancelling an order was about setting the amount to 0,
pixelbeat has joined #stellar-dev
<stellar-slack>
<fredolafritte> now js-stellar-base complains about it: `TypeError: amount argument must be of type String and represent a positive number`
<stellar-slack>
<fredolafritte> moreover, the offerId has to be a string too, is there any reason for that ?
<stellar-slack>
<fredolafritte> when getting the orders for an account, it returns an integer for the orderId.
<stellar-slack>
<fredolafritte> So we need to convert this integer to a string, is it really necessary ?
nivah has quit [Ping timeout: 246 seconds]
<stellar-slack>
<fredolafritte> @scott can we get rid of --ruby-horizon-url option in horizon ? Is it still used ?
<stellar-slack>
<sacarlson> so fredolafritte did you find a working method to cancel an order yet? I can' get any orders to trigger it seems unless they are a direct match and there are no other orders for the same account on the books. so I guess I need to cancel orders before I add any others
<stellar-slack>
<fredolafritte> @sacarlson: for sure cancelling an order was working 2 month ago, now it doesn't. Partial order match was working too and I don't know if it is still working.
<stellar-slack>
<sacarlson> ok so no work around then
<stellar-slack>
<fredolafritte> well that is with the js lib, don't know anything about the ruby lib
<stellar-slack>
<sacarlson> it shows on the books but the orders just aren't trigering
<stellar-slack>
<sacarlson> yes I'm using ruby
<stellar-slack>
<fredolafritte> what do you mean by triggering ? matched ?
<stellar-slack>
<sacarlson> I mean I have orders that I would assume match with grater than price that should fire the order
<stellar-slack>
<sacarlson> the image above it a shot of what I presently have on stellar testnet viewed from sqlite browser
<stellar-slack>
<sacarlson> I think it might be a bug in stellar-core unless I brain farted again
<stellar-slack>
<sacarlson> or I just don't know the rules of order
<stellar-slack>
<nelisky> sacarlson: yeah, it's actually working as expected in not triggering matches
<stellar-slack>
<nelisky> basically the price is base/counter, so taking the top entries on each direction from your png:
<stellar-slack>
<sacarlson> oh ok so what is the rules then?
<stellar-slack>
<nelisky> AAA/BBB price 5 == 5 BBB per AAA, or 0.2 AAA per BBB
<stellar-slack>
<nelisky> BBB/AAA price 3 == 3 AAA per BBB or 0.3[3] BBB per AAA
<stellar-slack>
<nelisky> all the AAA bids are > 1 BBB per AAA, where all the asks are < 1 BBB per AAA (but over 1 AAA per BBB which is what you see on the db)
<stellar-slack>
<sacarlson> oh ok I'm still confused but glad to hear it's me brain farting again
<stellar-slack>
<sacarlson> how about I send you funds of AAA and BBB nelisky so you can try to triger one of them
<stellar-slack>
<nelisky> I'm not on testnet at all, and a little busy at the moment, but if you can't find anyone else to do it I'll step in later today, ok?
<stellar-slack>
<nelisky> (I'm GMT)
<stellar-slack>
<sacarlson> I'm bkk time it's getting later here already
<stellar-slack>
<nelisky> I'll likely catch you in your morning time, then ;)
<stellar-slack>
<sacarlson> :+1:
uber has quit [Excess Flood]
uber has joined #stellar-dev
<stellar-slack>
<scott> @fredolafritte: yep, we can remove it.
<stellar-slack>
<fredolafritte> is there any config file for horizon ? or it's only cli based or environment variable ?
<stellar-slack>
<scott> presently just CLI and environment. Perhaps I’ll add TOML bindings to vipe (the config library we use) in the future, but thats a nice to have
<stellar-slack>
<bartek> @fredolafritte: I went to far with arguments validation. this should be fixed in stellar-base 0.4.15 (released now)
Trasp has quit [Remote host closed the connection]