A successful call to a unified method for placing market or limit orders returns the following structure: { 'id': 'string', // order id 'info': { ... }, // decoded original JSON response from the exchange as is }
って書いてあるんだが、どうやって戻り値を受け取るんや?ていうか戻り値はどこに返されるんや? 0403承認済み名無しさん2018/03/27(火) 14:03:41.86ID:019WLjHy 現物持たないといけないのはハイリスクだな 20万で運用させて既に2万は減ってる 0404承認済み名無しさん2018/03/27(火) 14:06:33.97ID:hqEpRDno>>402 A successful call to a unified method for placing market or limit orders returns the following structure って書いてあるけど? 0405承認済み名無しさん2018/03/27(火) 14:27:47.19ID:FCBzIuW5>>404 だからそのストラクチャがどこにあるのかわからないってことよ 返ってきた形跡がまるでない 0406承認済み名無しさん2018/03/27(火) 16:40:39.63ID:hqEpRDno 以下のストラクチャで返ってくるって書いてあるんだが? { 'id': 'string', // order id 'info': { ... }, // decoded original JSON response from the exchange as is } そして'info'に全部つめこめられている(取引所によってまちまち) 0407承認済み名無しさん2018/03/27(火) 21:08:55.55ID:FCBzIuW5>>406 ありがとう
{ 'id': 'string', // order id 'info': { ... }, // decoded original JSON response from the exchange as is }
俺が分からないのは、このjsonデータ自体をどうやって受け取るかなんだよ・・・ ccxtが定めた特定の変数名があって 辞書 = 特定の変数名 で受け取れると思っていたのだが? 0408承認済み名無しさん2018/03/27(火) 23:51:17.35ID:hqEpRDno サンプルにある、 // PHP // add custom user id to your order $hitbtc->create_order ('BTC/USD', 'limit', 'buy', 1, 3000, array ('clientOrderId' => '123')); この返り値に見えるけど違うのか?
Order に関しては、 - this part of the unified API is currenty a work in progress - there may be some issues and missing implementations here and there - contributions, pull requests and feedback appreciated と書かれてるので、実際にどんな動作をしているのかは判らぬが。 040912018/03/28(水) 10:26:28.75ID:bAIbFYZz 今のアルゴリズムでペアにした通貨の方が一時的に減る現象があるんだけど、原因何かわかる人いる? 基本的に同量もしくは増えるしかないようにしてるはずなんだけど、反映が遅れてるってだけなのかな 0410承認済み名無しさん2018/03/28(水) 11:16:28.94ID:S+9qw4rN バランスが偏りすぎた状態を解消するのに、利益が薄いタイミングで成り行き注文を出し、成約のアベレージがマイナスになっただけでは 041112018/03/28(水) 11:21:51.32ID:bAIbFYZz いや、現行バージョンではバランスの偏り解消はしてないんだよね してるにしても基軸側が減るはずなんだけど 0412承認済み名無しさん2018/03/28(水) 12:06:20.11ID:Ka1aZ9P3 板取得と注文成立の間に時間あるから無限に損する可能性は結構ある 0413承認済み名無しさん2018/03/28(水) 12:20:30.98ID:weMpCd2A 公開して皆同じアルゴで同じようにアクセスしてるんだから タッチの差が積み重なれば悲惨なことになるわな。。 0414承認済み名無しさん2018/03/28(水) 13:59:59.54ID:+31HQwIs 質問なんだが、普通のOrderBookとLevel2OrderBookとの違いは何だよ? ccxtだとL3まであるようだが 0415承認済み名無しさん2018/03/28(水) 14:00:56.06ID:+31HQwIs The levels of detail or levels of order book aggregation are often number-labelled like L1, L2, L3...
L1: less detail for quickly obtaining very basic info, namely, the market price only. It appears to look like just one order in the order book. L2: most common level of aggregation where order volumes are grouped by price. If two orders have the same price, they appear as one single order for a volume equal to their total sum. This is most likely the level of aggregation you need for the majority of purposes. L3: most detailed level with no aggregation where each order is separate from other orders. This LOD naturally contains duplicates in the output. So, if two orders have equal prices they are not merged together and it's up to the exchange's matching engine to decide on their priority in the stack. You don't really need L3 detail for successful trading. In fact, you most probably don't need it at all. Therefore some exchanges don't support it and always return aggregated order books.