Skip to content

Commit

Permalink
Stable Aave Protocol Dated Recursive API Request Call.
Browse files Browse the repository at this point in the history
  • Loading branch information
Conor Flynn committed Nov 30, 2022
1 parent 74bb273 commit fcef552
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ private final String request(String tag, String sub_tag, String... data) {
}

// static request
System.out.println(String.format("%s%s%s%s%s", tag, delim, sub_tag, delim, formatted_data));
out.writeUTF(String.format("%s%s%s%s%s", tag, delim, sub_tag, delim, formatted_data));
return in.readUTF();
} catch (IOException e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

public class LocalTest {

private static final String host = "defi-de.idea.rpi.edu";
private static final String host = "localhost";

public static void main(String[] args) throws UnknownHostException, IOException {
final Socket socket = SocketFactory.getDefault().createSocket(host, 61200);
Expand Down Expand Up @@ -48,8 +48,8 @@ public void run() {
String rqst = request(String.format("http://%s:8080/defi/v1/rest/request_dated?"
+ "destination=%s&"
+ "key=%s&"
+ "request=request,aave-asset-dated,asset,WETH&"
+ "query=aave-asset-dated-WETH&"
+ "request=request,aave-protocol-dated&"
+ "query=aave-protocol-dated&"
+ "start_date=%s&"
+ "end_date=%s",
host,
Expand Down

0 comments on commit fcef552

Please sign in to comment.