The resource loading... loading...

The small question is, how do you operate two pairs of transactions simultaneously in one strategy?

Author: bitcoin8, Created: 2018-07-18 12:59:17, Updated: 2019-04-17 15:20:51

The small question is, how do you buy two (or more) pairs of trades at the same time in one strategy? So let's say you buy both btc_usdt and eth_usdt. There is no place to set up a transaction pair.

This is how it is now: Only one transaction pair can be selected when creating a bot, such as by selecting btc_usdt

How to respond function main (()) { var id = exchange.Buy ((100, 1);// buy one BTC with $100 Log ((id: , id); I'm not sure.

There is no way to add a second transaction pair in the strategy and the robot. How can you buy BTC in dollars and then buy ETH in dollars?


Related

More

yyf131419I'll add QQ group, please, boss.

Inventors quantify - small dreamsThe corresponding exchanges added to the robots page are exchanges[0], exchanges[1], exchanges[2]....., see API documentation: This is a list of all the different ways Dn-filebox.qbox.me/fce275577c4f353435ede5a3e02e00554385aed6.png is credited in the database. You can use different exchanges[n] to operate different accounts. If you want to switch to a trading pair on the current exchanges[n], you can do this: exchanges[n].IO (("currency", "ETH_BTC") switch to an ETH_BTC trading pair.

bitcoin8Thank you very much.

Inventors quantify - small dreamsThis is called exchanges[n].IO (("currency", "ETH_BTC") This switch can be made before the following function exchange.Buy or Sell is moved.

bitcoin8In an exchange, how do you switch? Buy eth_usdt and sell eth_btc. Give a basic implementation statement, thank you. Thank you.

Inventors quantify - small dreamsNeed to switch or add multiple exchanges

bitcoin8Thank you. I'm now looking for a simple hedge in an exchange. The first thing to do is to buy the ether_usdt and sell the ether_btc. How do I do that, now that I'm stuck in a transactional pair conversion, should I use a loop switch? Thank you, boss.