Skip to content

Commit

Permalink
add sample call to DataEnginePrimaryFunctions
Browse files Browse the repository at this point in the history
  • Loading branch information
Conor Flynn committed Apr 28, 2023
1 parent 37c14d6 commit 9e15e1d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions R-Code-Samples/DataEnginePrimaryFunctions.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,17 @@ request <- function(protocol, properties = "", headers = "", startdate = "", end
return(output)
})
}
```

## Sample function call to the protocol graph-aave-borrows
```{r}
startdate <- "2022-01-01"
enddate <- "2022-01-04"
# submit a request
graph.borrows <- request("graph-aave-borrows", "", "", startdate, enddate)
# for each request validate the code was successful
# if not the return the response with an empty dataframe
if(graph.borrows$response$code != 200)
return(graph.borrows)
```

0 comments on commit 9e15e1d

Please sign in to comment.