20 Nov 2018 |
komodobridge | [discord] <SHossain> for both | 21:54:51 |
komodobridge | [discord] <wbradt> Ok, thanks | 21:55:22 |
komodobridge | [discord] <wbradt> So, using `amount`, bob can place a limit order for a certain amount at a certain price? | 21:56:32 |
komodobridge | [discord] <SHossain> yes | 22:05:03 |
komodobridge | [discord] <wbradt> Great. | 22:05:21 |
21 Nov 2018 |
komodobridge | [discord] <ph03nix> does barterdex still get price feed from cmc? | 04:42:32 |
komodobridge | [discord] <ph03nix> i guess a better question is, where does the price feed come from? | 04:43:31 |
komodobridge | [discord] <jl777c> CMC changed to a paid plan, so the pricefeed shouldnt be used. you should generate your own pricefeed and set prices for bob | 08:14:29 |
komodobridge | [discord] <jl777c> as far as amount goes, i dont remember adding amount restrictions explicitly for bob. the available utxo implicitly limits the amount | 08:15:04 |
komodobridge | [discord] <ph03nix> `CMC changed to a paid plan` | 08:16:17 |
komodobridge | [discord] <ph03nix> yes, so i was going to suggest https://api.coinpaprika.com/ | 08:16:51 |
komodobridge | [discord] <ph03nix> maybe there are other free ones | 08:54:38 |
komodobridge | [discord] <ph03nix> this one is new to me and seems legit | 08:55:06 |
komodobridge | [discord] <dukeleto> "this API is free and without warranty": https://www.coingecko.com/api/docs/v3 | 09:17:27 |
komodobridge | [discord] <jl777c> updated FSM with a few more fixes. builds now | 09:21:50 |
komodobridge | [discord] <dukeleto> @jl777c i just realized I missed an `extern CCerror`, sorry about that | 09:35:23 |
komodobridge | [discord] <wbradt> @SHossain Using `"amount"` in `setprice` didn't seem to work. I also couldn't find any references to `"amount"` in the code for`setprice`
https://github.com/KomodoPlatform/KomodoPlatform/blob/master/iguana/exchanges/LP_prices.c#L513
https://github.com/KomodoPlatform/KomodoPlatform/blob/master/iguana/exchanges/LP_commands.c#L105 | 16:15:43 |
komodobridge | [discord] <SHossain> did the `amount` param worked in `autoprice` script? | 16:21:00 |
komodobridge | [discord] <wbradt> I haven't tried it | 16:26:10 |
komodobridge | [discord] <wbradt> How do I use `autoprice` to place an order at a price that doesn't change? | 16:27:11 |
komodobridge | [discord] <SHossain> ```JSON
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"autoprice\",\"base\":\"KMD\",\"rel\":\"BEER\",\"fixed\":0.4}"
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"autoprice\",\"base\":\"BEER\",\"rel\":\"KMD\",\"fixed\":100}"
``` | 16:36:43 |
komodobridge | [discord] <SHossain> if you can't set amount, just keep the amount you want to trade in the barterDEX address and send the rest to main account. in any circumstances, using main account for barterDEX is not recommended. always better to create a separate address for trading. | 16:38:21 |
komodobridge | [discord] <tolken> @SHossain I would have sworn James stated you couldn’t set a limit/amount for bobs, unfortunately. A mm2 thing. | 17:03:56 |
komodobridge | [discord] <SHossain> in that case, that is my mistake. | 17:04:30 |
komodobridge | [discord] <SHossain> in that case, that is my mistake. @wbradt ^^ | 17:04:57 |
komodobridge | [discord] <SHossain> thanks @tolken | 17:05:08 |
komodobridge | [discord] <tolken> It would be a very powerful addition though, to have a min/max. Btc will generally require larger UTXOs, so it would be nice to just prevent 1kmd trades against btc before swap even starts, even if there is an appropriately sized btc UTXO. | 17:07:41 |
26 Nov 2018 |
komodobridge | [discord] <wbradt> I am not sure if this is the right channel to ask: is there any self-trade prevention in BarterDEX? | 14:53:59 |
komodobridge | [discord] <jl777c> yes | 14:55:35 |
komodobridge | [discord] <wbradt> Thanks | 15:02:48 |