炒币机器人又叫数字货币自动交易软件系统。就是自动化分析趋势行情,自动化交易的一套软件。目前市面上种类也比较多,有的是在电脑软件,有的是运行手机软件。有的复杂,有的简单。
炒币机器人的出现,是必然的。因为币和股票交易所不同,币都是需要24小时交易,超出人类的能力;行情有巨大波动,没有机器人根本来不及反应;庄家都有是用先进的机器人操作,普通人靠手动操作无法跟上节奏。
这里介绍一款能快速上手的软件,名字叫炒币机,是手机端APP,安装到手机上,使用方便。且不需要提供交易所的API,非常安全。
每日行情分析
见下图,在交易之前,可以首先打开APP,查看一下当前的BTC趋势。尤其是要看BTC的日线趋势。
我们应该在趋势向上时交易,趋势向下,风险较大时休息。因为通常行情不好的时候,操作越多通常错的越多,损失就越多。
炒币机每天的北京时间0点和北京时间8点,会更新持仓。有一些优质的币就会新加进来。可以参考着交易。
持仓的币通常是从数百个币里面选中的,有良好的形态,通常有极大的概率,会上涨的。
可以每天跟着操作,非常容易。
止盈止损
持有一个币以后,一定要有一套严格的交易策略。炒币机内置了止盈止损功能,止盈可以自动移动设置止盈点,保障利润的最大化。达到止盈点以后,会发出提醒,用户可按提醒进行操作。
有时候也会遇到突然变盘的情况,或者与自己的判断方向向左的情况,这时候就要按交易系统止损。暂时退出,看明白方向以后。在进行操作。
炒币机器人APP免费版下载
直接贡献出来,CSDN上的:https://download.csdn.net/download/chaobiji/11622703
关于自动交易的实现代码,参考:
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;
import java.util.List;
interface FuturesMarketAPI {
@GET("/api/futures/v3/products/{instrument_id}/candles")
Call getProductCandles(@Path("instrument_id") String productId, @Query("start") String start, @Query("end") String end, @Query("granularity") String granularity);
}
import com.alibaba.fastjson.JSONArray;
import com.okcoin.commons.okex.open.api.bean.futures.result.*;
import com.okcoin.commons.okex.open.api.client.APIClient;
import com.okcoin.commons.okex.open.api.config.APIConfiguration;
import com.okcoin.commons.okex.open.api.service.futures.FuturesMarketAPIService;
public class FuturesMarketAPIServiceImpl implements FuturesMarketAPIService {
private APIClient client;
private FuturesMarketAPI api;
public FuturesMarketAPIServiceImpl(APIConfiguration config) {
this.client = new APIClient(config);
this.api = client.createService(FuturesMarketAPI.class);
}
@Override
public JSONArray getProductCandles(String productId, long start, long end, long granularity) {
return this.client.executeSync(this.api.getProductCandles(productId, String.valueOf(start), String.valueOf(end), String.valueOf(granularity)));
}
}
import okhttp3.Headers;
import okhttp3.OkHttpClient;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import retrofit2.Call;
import retrofit2.Response;
import retrofit2.Retrofit;
import java.io.IOException;
import java.util.List;
import java.util.Optional;
public class APIClient {
/**
* Synchronous send request
*/
public T executeSync(Call call) {
try {
Response response = call.execute();
if (this.config.isPrint()) {
printResponse(response);
}
int status = response.code();
String message = new StringBuilder().append(response.code()).append(" / ").append(response.message()).toString();
if (response.isSuccessful()) {
return response.body();
} else if (APIConstants.resultStatusArray.contains(status)) {
HttpResult result = JSON.parseObject(new String(response.errorBody().bytes()), HttpResult.class);
result.setStatusCode(status);
throw new APIException(result.message());
} else {
throw new APIException(message);
}
} catch (IOException e) {
throw new APIException("APIClient executeSync exception.", e);
}
}
}
public class FuturesAPIBaseTests extends BaseTests {
public APIConfiguration config() {
APIConfiguration config = new APIConfiguration();
config.setEndpoint("https://www.okex.com/");
config.setApiKey("");
config.setSecretKey("");
config.setPassphrase("");
config.setPrint(true);
config.setI18n(I18nEnum.ENGLISH);
return config;
}
String productId = "BTC-USD-180928";
}